fix exception if ship id not found
This commit is contained in:
@@ -168,7 +168,7 @@ public class EDCE {
|
|||||||
if (shipyard != null){
|
if (shipyard != null){
|
||||||
for (ShipyardItem ship : shipyard.getShips()) {
|
for (ShipyardItem ship : shipyard.getShips()) {
|
||||||
String id = Converter.getShipId(ship);
|
String id = Converter.getShipId(ship);
|
||||||
if (id.isEmpty()){
|
if (id == null || id.isEmpty()){
|
||||||
LOG.debug("{} is ignored, skip", ship.getName());
|
LOG.debug("{} is ignored, skip", ship.getName());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user