mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
inspection toolwindow: isAlreadySuppressedFromView should proper handle invalid offline nodes IDEA-157154
This commit is contained in:
+1
-2
@@ -53,8 +53,7 @@ public abstract class SuppressableInspectionTreeNode extends CachedInspectionTre
|
||||
|
||||
public final boolean isAlreadySuppressedFromView() {
|
||||
final Object usrObj = getUserObject();
|
||||
LOG.assertTrue(usrObj != null);
|
||||
return myView.getSuppressedNodes(myPresentation.getToolWrapper().getShortName()).contains(usrObj);
|
||||
return usrObj != null && myView.getSuppressedNodes(myPresentation.getToolWrapper().getShortName()).contains(usrObj);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user