Commit 989968b3 authored by Christian Hoesel's avatar Christian Hoesel 🎺

potentielle NPE verhindert, beim Abfragen von Strassensegmenten einer

Strasse (die nicht im Netz ist)
parent 861bca99
......@@ -453,7 +453,11 @@ public class NetzCache extends AbstractCache {
public List<StrassenSegment> getStrassenSegmente(final Strasse strasse) {
return Collections.unmodifiableList(s2ss.get(strasse));
List<StrassenSegment> list = s2ss.get(strasse);
if(list != null) {
return Collections.unmodifiableList(list);
return Collections.unmodifiableList(Collections.emptyList());
Markdown is supported
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