From: wisberg Date: Sun, 17 Aug 2003 18:23:00 +0000 (+0000) Subject: permitting null input in public utility method X-Git-Tag: V1_1_1~79 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dd7bee990b077e7778150b23dc50183fe319d1f7;p=aspectj.git permitting null input in public utility method --- diff --git a/testing/src/org/aspectj/testing/harness/bridge/AjcTest.java b/testing/src/org/aspectj/testing/harness/bridge/AjcTest.java index 7d4e97036..4a521d890 100644 --- a/testing/src/org/aspectj/testing/harness/bridge/AjcTest.java +++ b/testing/src/org/aspectj/testing/harness/bridge/AjcTest.java @@ -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]); }