Archived
0

fix exception if ship id not found

This commit is contained in:
Mo
2015-12-27 13:16:26 +03:00
parent eb6acf5b56
commit e4f8886018

View File

@@ -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;
} }