aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2005-01-26 15:49:52 +0000
committeraclement <aclement>2005-01-26 15:49:52 +0000
commit102eaace8f3c59750c68554a2867ea7d9cee12f8 (patch)
tree2bb8e7296d1b0530c801be4ded6705e68f05f326 /weaver
parentc301fe9d41df9862ee10a55cfa4e89bae53886e0 (diff)
downloadaspectj-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.java2
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;
}