Skip to content

Commit cc15842

Browse files
author
zhourenjian
committed
Merge Soheil's bug-fix
1 parent f4ad07e commit cc15842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ public boolean visit(ClassInstanceCreation node) {
785785
*/
786786
public boolean visit(MethodInvocation node) {
787787
IMethodBinding resolveMethodBinding = node.resolveMethodBinding();
788-
if (Modifier.isStatic(resolveMethodBinding.getModifiers())) {
788+
if (resolveMethodBinding != null && Modifier.isStatic(resolveMethodBinding.getModifiers())) {
789789
Expression expression = node.getExpression();
790790
if (expression instanceof Name) {
791791
Name name = (Name) expression;

0 commit comments

Comments
 (0)