Explorar el Código

修复一个npe问题

ximinghao hace 4 meses
padre
commit
e41396a196

+ 1 - 1
src/main/java/com/skyversation/xjcy/counter/DataPreCounter.java

@@ -451,7 +451,7 @@ public class DataPreCounter {
 
     private void updateStringValue(JSONObject obj, String key, String value, Set<String> uploadList) {
         String oldValue = obj.getString(key);
-        if (!oldValue.equals(value)) {
+        if (!Objects.equals(oldValue, value)) {
             obj.put(key, value);
             uploadList.add(obj.getString("id"));
         }