mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
fix NPE [ann]
This commit is contained in:
@@ -302,7 +302,8 @@ public class InspectionProfileImpl extends ProfileEx implements ModifiableModel,
|
||||
}
|
||||
|
||||
public InspectionProfileEntry getInspectionTool(@NotNull String shortName) {
|
||||
return getTools(shortName).getTool();
|
||||
final ToolsImpl tools = getTools(shortName);
|
||||
return tools != null? tools.getTool() : null;
|
||||
}
|
||||
|
||||
public InspectionProfileEntry getToolById(String id, @NotNull PsiElement element) {
|
||||
|
||||
Reference in New Issue
Block a user