Skip to content

Commit

Permalink
Fix for Gradle project sources popup menu invocation error apache#4755
Browse files Browse the repository at this point in the history
  • Loading branch information
makiam authored and Christian Lenz committed Dec 15, 2022
1 parent 9c0f48d commit b57b0fd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public boolean canFindUsages(Lookup lookup) {
EditorCookie ec = lookup.lookup(EditorCookie.class);
if (ec != null) {
Document doc = ec.getDocument();
if(doc == null) return ret;
FileObject file = NbEditorUtilities.getFileObject(doc);
ret = Antlr3Language.MIME_TYPE.equals(file.getMIMEType())
|| Antlr4Language.MIME_TYPE.equals(file.getMIMEType());
Expand Down

0 comments on commit b57b0fd

Please sign in to comment.