mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE fixed
This commit is contained in:
@@ -34,9 +34,10 @@ public class PyUnusedLocalInspection extends PyInspection {
|
||||
@Override
|
||||
public void inspectionFinished(LocalInspectionToolSession session) {
|
||||
final PyUnusedLocalInspectionVisitor visitor = myLastVisitor.get();
|
||||
assert visitor != null;
|
||||
visitor.registerProblems();
|
||||
myLastVisitor.remove();
|
||||
if (visitor != null) {
|
||||
visitor.registerProblems();
|
||||
myLastVisitor.remove();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user