fix exception on add station to path
This commit is contained in:
@@ -182,6 +182,7 @@ public class RouterController {
|
|||||||
StationModel sS = sStation.getValue();
|
StationModel sS = sStation.getValue();
|
||||||
StationModel tS = tStation.getValue();
|
StationModel tS = tStation.getValue();
|
||||||
PathRouteModel r = market.getPath(sS, tS);
|
PathRouteModel r = market.getPath(sS, tS);
|
||||||
|
if (r == null) return;
|
||||||
if (route != null){
|
if (route != null){
|
||||||
route = route.add(r);
|
route = route.add(r);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user