Commit 31b9b2cb authored by Luna Riegel's avatar Luna Riegel
Browse files

Fix: Initialize transient fields after deserializing

parent 9496d3ae
...@@ -349,6 +349,8 @@ public class Geometry extends GmlElement { ...@@ -349,6 +349,8 @@ public class Geometry extends GmlElement {
@Serial @Serial
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject(); in.defaultReadObject();
edges = new ArrayList<>();
edgeMap = new HashMap<>();
updateVertices(); updateVertices();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment