See: https://github.com/spring-projects/sts4/issues/59#issuecomment-397569150

Signed-off-by: Kris De Volder <kdevolder@pivotal.io>
This commit is contained in:
Kris De Volder
2018-06-15 08:47:29 -07:00
parent f0237da679
commit 0d4c3b8c42

View File

@@ -90,7 +90,7 @@ public class IndexNavigator {
// the index is at the 'root' of the tree and we don't need a '.' to navigate
String extendedPrefix = prefix==null?"":prefix + NAV_CHAR;
PropertyInfo candidate = index.findLongestCommonPrefixEntry(extendedPrefix);
if (candidate.getId().startsWith(extendedPrefix)) {
if (candidate!=null && candidate.getId().startsWith(extendedPrefix)) {
return candidate;
}
return null;