Fix suspected NPE

This commit is contained in:
Kris De Volder
2018-02-15 16:25:09 -08:00
parent abf9e2325e
commit 37720beb87

View File

@@ -73,7 +73,7 @@ public class IndexNavigator {
public PropertyInfo getExactMatch() {
if (prefix!=null) {
PropertyInfo candidate = index.findLongestCommonPrefixEntry(prefix);
if (candidate.getId().equals(prefix)) {
if (candidate!=null && candidate.getId().equals(prefix)) {
return candidate;
}
}