mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inspection tool window: check validity for before requesting a custom presentation
This commit is contained in:
@@ -471,7 +471,7 @@ public class InspectionResultsView extends JPanel implements Disposable, Occuren
|
||||
final int problemCount = myTree.getSelectedProblemCount();
|
||||
JComponent previewPanel = null;
|
||||
final InspectionToolWrapper tool = myTree.getSelectedToolWrapper();
|
||||
if (tool != null && refEntity != null && problemCount == 1) {
|
||||
if (tool != null && refEntity != null && problemCount == 1 && refEntity.isValid()) {
|
||||
final InspectionToolPresentation presentation = myGlobalInspectionContext.getPresentation(tool);
|
||||
previewPanel = presentation.getCustomPreviewPanel(refEntity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user