add null check early to catch root cause

This commit is contained in:
nishantmonu51 2015-03-09 21:10:28 +05:30
parent c21086b6a8
commit 6e935cca0a
1 changed files with 3 additions and 0 deletions

View File

@ -138,6 +138,9 @@ public class GroupByQueryHelper
@Override
public List accumulate(List accumulated, T in)
{
if(in == null){
throw new ISE("Cannot have null result");
}
accumulated.add(in);
return accumulated;
}