|
@@ -22,6 +22,9 @@ public class AlarmResultUtil {
|
|
}
|
|
}
|
|
// JSONArray records = (JSONArray) content.getOrDefault("records", new JSONArray());
|
|
// JSONArray records = (JSONArray) content.getOrDefault("records", new JSONArray());
|
|
JSONArray records = content.getJSONArray("records");
|
|
JSONArray records = content.getJSONArray("records");
|
|
|
|
+ if (records == null || records.isEmpty()) {
|
|
|
|
+ return new ArrayList<T>();
|
|
|
|
+ }
|
|
return records.toJavaList(clazz);
|
|
return records.toJavaList(clazz);
|
|
}
|
|
}
|
|
}
|
|
}
|