From bd60a5b54a76394d73612539265d993169ec36c3 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 4 May 2006 07:24:02 +0000 Subject: nicer --- tests/src/org/aspectj/systemtest/ajc150/DeclareAnnotationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/src/org/aspectj/systemtest/ajc150/DeclareAnnotationTests.java b/tests/src/org/aspectj/systemtest/ajc150/DeclareAnnotationTests.java index 0304944cf..c5009a213 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/DeclareAnnotationTests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/DeclareAnnotationTests.java @@ -297,7 +297,7 @@ public class DeclareAnnotationTests extends XMLBasedAjcTestCase { assertTrue("Couldn't find 'declare @type' element in the tree",ipe!=null); List l = AsmManager.getDefault().getRelationshipMap().get(ipe); - assertTrue("Should have a relationship but does not ",l.size()>0); + assertTrue("Should have a relationship but does not ",l!=null && l.size()>0); ipe = top.findElementForLabel(top.getRoot(), IProgramElement.Kind.DECLARE_ANNOTATION_AT_METHOD, -- cgit v1.2.3