check for empty tree list.

This commit is contained in:
Terence Parr 2014-01-03 10:51:46 -08:00 committed by Sam Harwell
parent d4275ab53a
commit 8f3c01fb3b
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ public class ParseTreeMatch {
@Nullable
public ParseTree get(String label) {
List<ParseTree> parseTrees = labels.get(label);
if ( parseTrees==null ) {
if ( parseTrees==null || parseTrees.size()==0 ) {
return null;
}