Skip to content

Commit ad60232

Browse files
committed
Avoid exception when trying to find whether unnamed object is used
1 parent 8a574a2 commit ad60232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/AccessRestrictionTreeScanner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ private void collectProblemForFQN(String fqn, JCTree node, byte accessType, Stri
403403
}
404404

405405
private void collectProblemForFQN(String fqn, int startPos, int endPos, byte accessType, String memberName) {
406-
if (fqn == null || fqn.equals(getCurrentUnitFQN())) {
406+
if (fqn == null || fqn.isEmpty() || fqn.equals(getCurrentUnitFQN())) {
407407
return;
408408
}
409409
if (startPos == -1) {

0 commit comments

Comments
 (0)