]> source.dussan.org Git - aspectj.git/commitdiff
permitting null input in public utility method
authorwisberg <wisberg>
Sun, 17 Aug 2003 18:23:00 +0000 (18:23 +0000)
committerwisberg <wisberg>
Sun, 17 Aug 2003 18:23:00 +0000 (18:23 +0000)
testing/src/org/aspectj/testing/harness/bridge/AjcTest.java

index 7d4e970360df3367c6cdf638bf36f4a83260854b..4a521d890134f78972d8aee3313ae76e8254ce96 100644 (file)
@@ -463,6 +463,9 @@ public class AjcTest extends RunSpecIterator {
         }
 
         public static AjcTest.Spec[] getTests(Suite.Spec spec) {
+            if (null == spec) {
+                return new AjcTest.Spec[0];
+            }
             return (AjcTest.Spec[]) spec.children.toArray(new AjcTest.Spec[0]);
         }