Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Issue #55
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcasters committed Jun 19, 2019
1 parent 74f8196 commit 7505735
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/org/pentaho/di/dataset/DataSetCsvGroup.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,12 @@ public static final List<Object[]> getAllRows( LogChannelInterface log, DataSetG
sortIndexes[ i ] = outputRowMeta.indexOfValue( sortFields.get( i ) );
}

if ( !sortFields.isEmpty() ) {
if (outputRowMeta.isEmpty()) {
log.logError( "WARNING: No field mappings selected for data set '"+dataSet.getName()+"', returning empty set of rows" );
return new ArrayList<>();
}

if ( !sortFields.isEmpty()) {

// Sort the rows...
//
Expand Down

0 comments on commit 7505735

Please sign in to comment.