Solving a null pointer issue.
This commit is contained in:
parent
8923503ccf
commit
6053399b02
@ -42,7 +42,10 @@ public class QueryStationStatusController extends CoreDispatcher {
|
||||
}
|
||||
for (String stationID : stationIDs) {
|
||||
ChargingStationDto chargingStationDto = REDIS.getCacheObject("station:" + stationID);
|
||||
Set<String> pileIds = chargingStationDto.getPiles();
|
||||
Set<String> pileIds = new HashSet<>();
|
||||
if (null != chargingStationDto) {
|
||||
pileIds = chargingStationDto.getPiles();
|
||||
}
|
||||
for (String pileId : pileIds) {
|
||||
boolean existsGun = false;
|
||||
List<ConnectorStatusInfo> connectorStatusInfos = new ArrayList<>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user