Skip to content

Commit e12b98e

Browse files
author
soheil_h_y
committed
1. A bug in dependancy ASTVisitor is resolved.
1 parent 1af88fc commit e12b98e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.core/src/net/sf/j2s/core/astvisitors/DependencyASTVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ public boolean visit(ArrayCreation node) {
749749
*/
750750
public boolean visit(MethodInvocation node) {
751751
IMethodBinding resolveMethodBinding = node.resolveMethodBinding();
752-
if (Modifier.isStatic(resolveMethodBinding.getModifiers())) {
752+
if (resolveMethodBinding != null && Modifier.isStatic(resolveMethodBinding.getModifiers())) {
753753
Expression expression = node.getExpression();
754754
if (expression instanceof Name) {
755755
Name name = (Name) expression;

0 commit comments

Comments
 (0)