Skip to content

Commit

Permalink
Avoid NPE in SemanticallyEqual (#3586)
Browse files Browse the repository at this point in the history
Fixes #3585.
  • Loading branch information
Bananeweizen authored Oct 1, 2023
1 parent 5e4742d commit 8e76a43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ public J.MethodInvocation visitMethodInvocation(J.MethodInvocation method, J j)
J.MethodInvocation compareTo = (J.MethodInvocation) j;
if (!method.getSimpleName().equals(compareTo.getSimpleName()) ||
!TypeUtils.isOfType(method.getMethodType(), compareTo.getMethodType()) ||
!(static_ == compareTo.getMethodType().hasFlags(Flag.Static) ||
!(static_ == (compareTo.getMethodType() != null && compareTo.getMethodType().hasFlags(Flag.Static)) ||
!nullMissMatch(method.getSelect(), compareTo.getSelect())) ||
method.getArguments().size() != compareTo.getArguments().size() ||
nullListSizeMissMatch(method.getTypeParameters(), compareTo.getTypeParameters())) {
Expand Down

0 comments on commit 8e76a43

Please sign in to comment.