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
9e555084
Commit
9e555084
authored
Jan 14, 2026
by
Luna Riegel
Browse files
Fix: Fixed NPE in stream-healing
parent
430a0630
Changes
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/Extensions/CityDoctorHealer/src/main/java/de/hft/stuttgart/citydoctor2/healer/Healer.java
View file @
9e555084
...
@@ -13,6 +13,7 @@ import java.util.Map;
...
@@ -13,6 +13,7 @@ import java.util.Map;
import
java.util.Objects
;
import
java.util.Objects
;
import
de.hft.stuttgart.citydoctor2.database.CityObjectCache
;
import
de.hft.stuttgart.citydoctor2.database.CityObjectCache
;
import
de.hft.stuttgart.citydoctor2.database.UnconnectedCache
;
import
de.hft.stuttgart.citydoctor2.exceptions.CityObjectCacheException
;
import
de.hft.stuttgart.citydoctor2.exceptions.CityObjectCacheException
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.apache.logging.log4j.Logger
;
...
@@ -189,7 +190,12 @@ public class Healer {
...
@@ -189,7 +190,12 @@ public class Healer {
}
}
};
};
}
}
cache
=
checker
.
getModel
().
getCache
();
if
(
checker
.
getModel
()
!=
null
){
cache
=
checker
.
getModel
().
getCache
();
}
else
{
//Stream healing is being used, use an unconnected cache
cache
=
new
UnconnectedCache
();
}
this
.
l
=
l
;
this
.
l
=
l
;
}
}
...
...
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