Skip to content

Commit

Permalink
Merge branch 'master' of github.com:spring-projects/sts4
Browse files Browse the repository at this point in the history
  • Loading branch information
kdvolder committed Jun 5, 2019
2 parents 154eb64 + bdd9c1c commit 7f316b5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ public List<Location> handle(TextDocumentPositionParams position) {

if (assistContext != null) {
if (path.pointsAtValue()) {
return assistContext.getDefinitionsForPropertyValue(getNodeRegion(ast, offset));
DocumentRegion nodeRegion = getNodeRegion(ast, offset);
if (nodeRegion != null) {
return assistContext.getDefinitionsForPropertyValue(nodeRegion);
}
} else {
return assistContext.getDefinitionsForPropertyKey();
}
Expand Down

0 comments on commit 7f316b5

Please sign in to comment.