diff options
author | aclement <aclement> | 2006-07-26 15:23:09 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-07-26 15:23:09 +0000 |
commit | 7ab3074afd99992ef9301311f7c1e1c4dfc50905 (patch) | |
tree | 8de78366747c532b6ab60dd42c90df466b08c4f3 /ajde | |
parent | 9fcd1e6ce6ec27d7b3db919e1b3605e190b31d3b (diff) | |
download | aspectj-7ab3074afd99992ef9301311f7c1e1c4dfc50905.tar.gz aspectj-7ab3074afd99992ef9301311f7c1e1c4dfc50905.zip |
fix annoying stacktrace that comes out when running all tests
Diffstat (limited to 'ajde')
-rw-r--r-- | ajde/src/org/aspectj/ajde/ui/StructureViewNodeFactory.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ajde/src/org/aspectj/ajde/ui/StructureViewNodeFactory.java b/ajde/src/org/aspectj/ajde/ui/StructureViewNodeFactory.java index 97552e44f..03d84c3fd 100644 --- a/ajde/src/org/aspectj/ajde/ui/StructureViewNodeFactory.java +++ b/ajde/src/org/aspectj/ajde/ui/StructureViewNodeFactory.java @@ -41,7 +41,9 @@ public abstract class StructureViewNodeFactory { // Don't put relationships on fields as they can then appear twice when building the outline - // once under clinit field-set nodes and once under the field declaration. if (nodeHandle != null && !node.getKind().equals(IProgramElement.Kind.FIELD)) { - List relationships = AsmManager.getDefault().getRelationshipMap().get(nodeHandle); + AsmManager manager = AsmManager.getDefault(); + IRelationshipMap relMap = (manager==null?null:manager.getRelationshipMap()); + List relationships = (relMap==null?null:relMap.get(nodeHandle)); if (relationships != null) { for (Iterator it = relationships.iterator(); it.hasNext(); ) { IRelationship rel = (IRelationship)it.next(); |