Преглед на файлове

fix annoying stacktrace that comes out when running all tests

tags/PRE_PIPELINE
aclement преди 18 години
родител
ревизия
7ab3074afd
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3
    1
      ajde/src/org/aspectj/ajde/ui/StructureViewNodeFactory.java

+ 3
- 1
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();

Loading…
Отказ
Запис