mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-10-06 10:27:42 +02:00
Fixed ConfigReader sometimes adding empty string to a null value.
This commit is contained in:
parent
18d6b862b7
commit
c8687b7c48
@ -365,11 +365,6 @@ public class ConfigNode {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ConfigNode{" +
|
||||
"key='" + key + '\'' +
|
||||
", nodeOrder=" + nodeOrder +
|
||||
", comment=" + comment +
|
||||
", value='" + value + '\'' +
|
||||
'}';
|
||||
return "{'" + value + "' " + (!childNodes.isEmpty() ? childNodes : "") + '}';
|
||||
}
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ public class ConfigReader implements Closeable {
|
||||
}
|
||||
String key = keyAndValue[0].trim();
|
||||
String value = keyAndValue[1].trim();
|
||||
return handleNewNode(key, value);
|
||||
return handleNewNode(key, !value.isEmpty() ? value : null);
|
||||
}
|
||||
|
||||
private ConfigNode handleMultiline(String line) {
|
||||
|
Loading…
Reference in New Issue
Block a user