diff --git a/src/main/java/nl/utwente/groove/grammar/aspect/AspectGraph.java b/src/main/java/nl/utwente/groove/grammar/aspect/AspectGraph.java index e91faf3d6..05af90f13 100644 --- a/src/main/java/nl/utwente/groove/grammar/aspect/AspectGraph.java +++ b/src/main/java/nl/utwente/groove/grammar/aspect/AspectGraph.java @@ -597,7 +597,7 @@ private SortMap createSortMap() { if (e.label().hasRole(EdgeRole.NODE_TYPE) && e.source().hasId()) { String id = e.source().getId(); var typeLabel = e.getRuleLabel().getTypeLabel(); - if (typeLabel != null) { + if (typeLabel != null && typeSortMap.containsKey(typeLabel)) { for (var se : typeSortMap.get(typeLabel).entrySet()) { var fieldName = new QualName(id, se.getKey()); result.add(fieldName, se.getValue());