mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fixed NPE in PyUnusedLocalInspectionVisitor.visitPyCallExpression()
This commit is contained in:
@@ -207,7 +207,8 @@ public class PyUnusedLocalInspectionVisitor extends PyInspectionVisitor {
|
||||
owner.acceptChildren(new PyRecursiveElementVisitor(){
|
||||
@Override
|
||||
public void visitPyCallExpression(final PyCallExpression node) {
|
||||
if ("locals".equals(node.getCallee().getName())){
|
||||
final PyExpression callee = node.getCallee();
|
||||
if (callee != null && "locals".equals(callee.getName())){
|
||||
throw new DontPerformException();
|
||||
}
|
||||
node.acceptChildren(this); // look at call expr in arguments
|
||||
|
||||
Reference in New Issue
Block a user