mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
more diagnostics for EA-106944 - NPE: ContributorsBasedGotoByModel.getElementName
This commit is contained in:
+1
-1
@@ -254,7 +254,7 @@ public abstract class ContributorsBasedGotoByModel implements ChooseByNameModelE
|
||||
@Override
|
||||
public String getElementName(Object element) {
|
||||
if (!(element instanceof NavigationItem)) {
|
||||
throw new AssertionError(element + " of " + element.getClass());
|
||||
throw new AssertionError((element == null ? "null" : element + " of " + element.getClass()) + " in " + this + " of " + getClass());
|
||||
}
|
||||
return ((NavigationItem)element).getName();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user