Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
31b9b2cb
Commit
31b9b2cb
authored
Jul 24, 2025
by
Luna Riegel
Browse files
Fix: Initialize transient fields after deserializing
parent
9496d3ae
Changes
1
Show whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/datastructure/Geometry.java
View file @
31b9b2cb
...
@@ -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
();
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment