]> source.dussan.org Git - aspectj.git/commitdiff
Fix for null arrays (from AV)
authoraclement <aclement>
Wed, 26 Jan 2005 15:49:52 +0000 (15:49 +0000)
committeraclement <aclement>
Wed, 26 Jan 2005 15:49:52 +0000 (15:49 +0000)
weaver/src/org/aspectj/weaver/Iterators.java

index 139243d968e398c1bd4371ffd5a43dfe1c5a5708..c9af5e3e90b129c913088fde4c4fca352ac01be1 100644 (file)
@@ -88,7 +88,7 @@ public final class Iterators {
     public static Iterator array(final Object[] o) {
         return new Iterator() {
             int i = 0;
-            int len = o.length;
+            int len = (o==null)?0:o.length;
             public boolean hasNext() {
                 return i < len;
             }