]> source.dussan.org Git - aspectj.git/commitdiff
256400: fix
authoraclement <aclement>
Thu, 27 Nov 2008 17:59:09 +0000 (17:59 +0000)
committeraclement <aclement>
Thu, 27 Nov 2008 17:59:09 +0000 (17:59 +0000)
asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java

index 7c8e6253fc517aa4a9d392c2732161dd8607bbbe..c20428d675615721002bdeb533139fbb7de86d3c 100644 (file)
@@ -164,7 +164,7 @@ public class JDTLikeHandleProvider implements IElementHandleProvider {
                                if (object.getKind() == ipe.getKind()) {
                                        if (object.getName().equals(ipe.getName())) {
                                                String sig1 = object.getBytecodeSignature();
-                                               if (sig1 == null && ipeSig == null || sig1.equals(ipeSig)) {
+                                               if (sig1 == null && ipeSig == null || (sig1 != null && sig1.equals(ipeSig))) {
                                                        String existingHandle = object.getHandleIdentifier();
                                                        int suffixPosition = existingHandle.indexOf('!');
                                                        if (suffixPosition != -1) {