Wired Data not read if empty

This commit is contained in:
Stankman 2023-07-06 10:20:43 -05:00
parent a077912e9c
commit f08278b5d5

View File

@ -58,8 +58,11 @@ public abstract class InteractionWired extends InteractionDefault implements IWi
public void loadWiredSettings(ResultSet set) throws SQLException, JsonProcessingException {
String wiredData = set.getString("wired_data");
this.wiredSettings = new WiredSettings();
if(wiredData.startsWith("{")) {
this.wiredSettings = WiredHandler.getObjectMapper().readValue(wiredData, WiredSettings.class);
}
}
/**
*