Skip to content

Commit

Permalink
TEIIDDES-1704 Added NULL check on getResultSetColumns() call
Browse files Browse the repository at this point in the history
  • Loading branch information
blafond committed May 3, 2013
1 parent 64680e4 commit 9c6c95e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ public static List<IExpression> getProjectedSymbols(final ICommand command) {
Set<IExpression> theSymbols = new LinkedHashSet<IExpression>();

theSymbols.addAll(command.getProjectedSymbols());
theSymbols.addAll(command.getResultSetColumns());

// Teiid ICommand.getResultSetColumns() may return NULL so need to check before adding to Set
if( command.getResultSetColumns() != null ) {
theSymbols.addAll(command.getResultSetColumns());
}

List<IExpression> symbols = new ArrayList(theSymbols.size());
symbols.addAll(theSymbols);
Expand Down

0 comments on commit 9c6c95e

Please sign in to comment.