]> source.dussan.org Git - aspectj.git/commitdiff
222987 - NPE guard
authoraclement <aclement>
Thu, 20 Mar 2008 15:48:59 +0000 (15:48 +0000)
committeraclement <aclement>
Thu, 20 Mar 2008 15:48:59 +0000 (15:48 +0000)
weaver5/java5-src/org/aspectj/weaver/reflect/Java15AnnotationFinder.java

index fcdaf23f8946e5615f601c21047910b8f55d0fd0..7b8bca5055848316ead7f948c0e10ababf2425eb 100644 (file)
@@ -265,6 +265,8 @@ public class Java15AnnotationFinder implements AnnotationFinder, ArgNameFinder {
        }
        
        private String[] getParameterNamesFromLVT(LocalVariableTable lvt, int numVars) {
+           if (lvt == null)
+            return null;// pr222987 - prevent NPE
                LocalVariable[] vars = lvt.getLocalVariableTable();
                if (vars.length < numVars) {
                        // basic error, we can't get the names...