We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40c0be9 commit c5d85afCopy full SHA for c5d85af
src/main/java/org/comroid/api/config/ConfigurationManager.java
@@ -89,8 +89,9 @@ public void reload() {
89
90
@SneakyThrows
91
public void save() {
92
- DataNode data = config;
93
- var prefix = dataType.getSerializerPrefix();
+ DataNode data = config;
+ if (data == null) return;
94
+ var prefix = dataType.getSerializerPrefix();
95
if (prefix != null) data = prefix.apply(data);
96
try (var fos = new FileOutputStream(file)) {
97
fos.write(data.toSerializedString().getBytes(StandardCharsets.UTF_8));
0 commit comments