diff options
author | aclement <aclement> | 2005-01-26 15:49:52 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-01-26 15:49:52 +0000 |
commit | 102eaace8f3c59750c68554a2867ea7d9cee12f8 (patch) | |
tree | 2bb8e7296d1b0530c801be4ded6705e68f05f326 /weaver | |
parent | c301fe9d41df9862ee10a55cfa4e89bae53886e0 (diff) | |
download | aspectj-102eaace8f3c59750c68554a2867ea7d9cee12f8.tar.gz aspectj-102eaace8f3c59750c68554a2867ea7d9cee12f8.zip |
Fix for null arrays (from AV)
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/Iterators.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weaver/src/org/aspectj/weaver/Iterators.java b/weaver/src/org/aspectj/weaver/Iterators.java index 139243d96..c9af5e3e9 100644 --- a/weaver/src/org/aspectj/weaver/Iterators.java +++ b/weaver/src/org/aspectj/weaver/Iterators.java @@ -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; } |