fix for NPE in FHIRPath parser

This commit is contained in:
Grahame Grieve 2020-07-31 12:48:54 +10:00
parent 82125235a0
commit 59b0f032cb
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ public class FHIRLexer {
private String name;
public FHIRLexer(String source, String name) throws FHIRLexerException {
this.source = source;
this.source = source == null ? "" : source;
this.name = name == null ? "??" : name;
currentLocation = new SourceLocation(1, 1);
next();