From d5295fa11153a83610280239deafbfe32861808b Mon Sep 17 00:00:00 2001 From: marhali Date: Sun, 19 Feb 2023 13:25:08 +0100 Subject: [PATCH] try getParent() instead of this --- src/main/java/thito/nodeflow/config/Section.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/thito/nodeflow/config/Section.java b/src/main/java/thito/nodeflow/config/Section.java index c06fabc..3083c63 100644 --- a/src/main/java/thito/nodeflow/config/Section.java +++ b/src/main/java/thito/nodeflow/config/Section.java @@ -191,7 +191,7 @@ public interface Section { if (o instanceof Map) { if (o instanceof MapSection) return (MapSection) o; MapSection mapSection = new MapSection((Map) o); - mapSection.setParent(this, Section.getName(path)); + mapSection.setParent(getParent(), Section.getName(path)); return mapSection; } return null; @@ -214,7 +214,7 @@ public interface Section { return list; } ListSection list = new ListSection(Collections.singleton(o)); - list.setParent(this, Section.getName(path)); + list.setParent(getParent(), Section.getName(path)); return list; }); }