|
@@ -57,7 +57,12 @@ public class TaskRedisRead implements Runnable {
|
|
|
|
|
|
if ("bool".equals(dataType)) {
|
|
if ("bool".equals(dataType)) {
|
|
for (int i = 0; i < objects.size(); i++) {
|
|
for (int i = 0; i < objects.size(); i++) {
|
|
- response = (List<String>) objects.get(i);
|
|
|
|
|
|
+ try {
|
|
|
|
+ response = (List<String>) objects.get(i);
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ log.error(objects.get(i).toString());
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
|
|
value = response.get(1);
|
|
value = response.get(1);
|
|
if (value == null || "".equals(value) || value.contains("-nan")) continue;
|
|
if (value == null || "".equals(value) || value.contains("-nan")) continue;
|
|
@@ -89,7 +94,12 @@ public class TaskRedisRead implements Runnable {
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
for (int i = 0; i < objects.size(); i++) {
|
|
for (int i = 0; i < objects.size(); i++) {
|
|
- response = (List<String>) objects.get(i);
|
|
|
|
|
|
+ try {
|
|
|
|
+ response = (List<String>) objects.get(i);
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ log.error(objects.get(i).toString());
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
|
|
value = response.get(1);
|
|
value = response.get(1);
|
|
if (value == null || "".equals(value) || value.contains("-nan")) continue;
|
|
if (value == null || "".equals(value) || value.contains("-nan")) continue;
|