summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric')
-rw-r--r--src/main/java/com/keuin/kbackupfabric/config/KBackupConfig.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/config/KBackupConfig.java b/src/main/java/com/keuin/kbackupfabric/config/KBackupConfig.java
index 8ce5ed4..c47645b 100644
--- a/src/main/java/com/keuin/kbackupfabric/config/KBackupConfig.java
+++ b/src/main/java/com/keuin/kbackupfabric/config/KBackupConfig.java
@@ -38,6 +38,14 @@ public class KBackupConfig {
ObjectWriter w = om.writerWithDefaultPrettyPrinter();
w.writeValue(file, instance);
}
+ validate(instance);
+ }
+
+ private static void validate(KBackupConfig cfg) {
+ if (cfg.incbakCow == null) {
+ PrintUtil.warn("incbak_cow could not be null");
+ cfg.incbakCow = false;
+ }
}
public static void load() throws IOException {