fix: 空指针异常

This commit is contained in:
2024-07-25 18:35:53 +08:00
parent c312d3071d
commit 7ab645a22d
13 changed files with 26 additions and 26 deletions

View File

@@ -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) {

View File

@@ -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 "";
}

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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;
}

View File

@@ -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() {

View File

@@ -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;
}

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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;
}

View File

@@ -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;
}