From a1cc82b6e0c69b766548ea9414da6ac32d55775c Mon Sep 17 00:00:00 2001 From: rensink Date: Tue, 25 Jun 2024 09:45:43 +0200 Subject: [PATCH] Bug fix https://github.com/nl-utwente-groove/nl-utwente-groove.github.io/issues/3 --- src/main/java/nl/utwente/groove/grammar/aspect/AspectGraph.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());