mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +01:00
Wired Data not read if empty
This commit is contained in:
parent
a077912e9c
commit
f08278b5d5
@ -58,7 +58,10 @@ public abstract class InteractionWired extends InteractionDefault implements IWi
|
|||||||
public void loadWiredSettings(ResultSet set) throws SQLException, JsonProcessingException {
|
public void loadWiredSettings(ResultSet set) throws SQLException, JsonProcessingException {
|
||||||
String wiredData = set.getString("wired_data");
|
String wiredData = set.getString("wired_data");
|
||||||
this.wiredSettings = new WiredSettings();
|
this.wiredSettings = new WiredSettings();
|
||||||
this.wiredSettings = WiredHandler.getObjectMapper().readValue(wiredData, WiredSettings.class);
|
|
||||||
|
if(wiredData.startsWith("{")) {
|
||||||
|
this.wiredSettings = WiredHandler.getObjectMapper().readValue(wiredData, WiredSettings.class);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user