check for empty tree list.
This commit is contained in:
parent
d4275ab53a
commit
8f3c01fb3b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue