summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}