fix NPE
This commit is contained in:
parent
d14d77fc61
commit
53dd34c3e7
@ -54,7 +54,8 @@ public class NotificationEquipChargeStatusTask extends CoreDispatcher {
|
||||
for (String gunkey : gunkeys) {
|
||||
if (!gunkey.endsWith(".seqdec") && !gunkey.endsWith(".seqhex") && !gunkey.endsWith(".hori")) {
|
||||
final Map<String, Object> cacheGun = REDIS.getCacheMap(gunkey);
|
||||
final String status = cacheGun.get("status").toString();
|
||||
final String status = (String) cacheGun.get("status");
|
||||
if (status != null) {
|
||||
if (isInteger(status)) {
|
||||
String orderkey = (String) cacheGun.get("orderkey");
|
||||
if (orderkey == null) continue;
|
||||
@ -96,6 +97,7 @@ public class NotificationEquipChargeStatusTask extends CoreDispatcher {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void calculateEm(EquipChargeStatus equipChargeStatus, CacheRateModel cacheRateModel) {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user