fix: 空指针异常
This commit is contained in:
@@ -139,7 +139,7 @@ public class ItemProtocol {
|
||||
setIsonline(true);
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ public class ItemProtocol {
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return "";
|
||||
}
|
||||
|
||||
public int[] getOpcArrayValue(String protocol) {
|
||||
|
||||
@@ -139,7 +139,7 @@ public class ItemProtocol {
|
||||
setIsonline(true);
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ public class ItemProtocol {
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ public class ItemProtocol {
|
||||
setIsonline(true);
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ public class ItemProtocol {
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return "";
|
||||
}
|
||||
|
||||
public static List<ItemDto> getReadableItemDtos() {
|
||||
|
||||
@@ -194,7 +194,7 @@ public class ItemProtocol {
|
||||
setIsonline(true);
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ public class ItemProtocol {
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return "";
|
||||
}
|
||||
|
||||
public static List<ItemDto> getReadableItemDtos() {
|
||||
|
||||
@@ -112,7 +112,7 @@ public class ItemProtocol {
|
||||
setIsonline(true);
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return 0;
|
||||
}
|
||||
|
||||
public String getOpcStringValue(String protocol) {
|
||||
@@ -123,7 +123,7 @@ public class ItemProtocol {
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return "";
|
||||
}
|
||||
|
||||
public static List<ItemDto> getReadableItemDtos() {
|
||||
|
||||
@@ -166,7 +166,7 @@ public class ItemProtocol {
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return "";
|
||||
}
|
||||
|
||||
public int getOpcIntegerValue(String protocol) {
|
||||
@@ -178,7 +178,7 @@ public class ItemProtocol {
|
||||
setIsonline(true);
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -178,7 +178,7 @@ public class ItemProtocol {
|
||||
setIsonline(true);
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
@@ -189,7 +189,7 @@ public class ItemProtocol {
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return "";
|
||||
}
|
||||
|
||||
public static List<ItemDto> getReadableItemDtos() {
|
||||
|
||||
@@ -199,7 +199,7 @@ public class ItemProtocol {
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return "";
|
||||
}
|
||||
|
||||
public float getOpcFloatValue(String protocol) {
|
||||
@@ -211,7 +211,7 @@ public class ItemProtocol {
|
||||
setIsonline(true);
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -199,7 +199,7 @@ public class ItemProtocol {
|
||||
setIsonline(true);
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return 0;
|
||||
|
||||
}
|
||||
public String getOpcStringValue(String protocol) {
|
||||
@@ -209,7 +209,7 @@ public class ItemProtocol {
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return "";
|
||||
}
|
||||
|
||||
public static List<ItemDto> getReadableItemDtos() {
|
||||
|
||||
@@ -173,7 +173,7 @@ public class ItemProtocol {
|
||||
setIsonline(true);
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return 0;
|
||||
|
||||
}
|
||||
public int getOpcIntegerValue(String protocol) {
|
||||
@@ -184,7 +184,7 @@ public class ItemProtocol {
|
||||
setIsonline(true);
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static List<ItemDto> getReadableItemDtos() {
|
||||
|
||||
@@ -81,7 +81,7 @@ ItemProtocol {
|
||||
setIsonline(true);
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return 0;
|
||||
}
|
||||
|
||||
public String getOpcStringValue(String protocol) {
|
||||
@@ -91,7 +91,7 @@ ItemProtocol {
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return "";
|
||||
}
|
||||
|
||||
public static List<ItemDto> getReadableItemDtos() {
|
||||
|
||||
@@ -182,7 +182,7 @@ public class ItemProtocol {
|
||||
setIsonline(true);
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return 0;
|
||||
}
|
||||
|
||||
public float getOpcFloatValue(String protocol) {
|
||||
@@ -194,7 +194,7 @@ public class ItemProtocol {
|
||||
setIsonline(true);
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -177,7 +177,7 @@ public class ItemProtocol {
|
||||
setIsonline(true);
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return 0;
|
||||
}
|
||||
|
||||
public float getOpcFloatValue(String protocol) {
|
||||
@@ -189,7 +189,7 @@ public class ItemProtocol {
|
||||
setIsonline(true);
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user