fix bundles reset to default
authorNiki Roo <niki@nikiroo.be>
Fri, 31 May 2019 13:06:25 +0000 (15:06 +0200)
committerNiki Roo <niki@nikiroo.be>
Fri, 31 May 2019 13:06:25 +0000 (15:06 +0200)
src/be/nikiroo/utils/resources/Bundle.java

index 21021e065f05a938f4521bfb5fd399b40847a77d..5139287fa5c46fcf824fc73f901cb11bbebc326b 100644 (file)
@@ -1167,7 +1167,7 @@ public class Bundle<E extends Enum<E>> {
        }
 
        /**
-        * Reset the backing map to the content of the given bundle, or with default
+        * Reset the backing map to the content of the given bundle, or with NULL
         * values if bundle is NULL.
         * 
         * @param bundle
@@ -1185,7 +1185,7 @@ public class Bundle<E extends Enum<E>> {
                                        if (bundle != null) {
                                                value = bundle.getString(id.name());
                                        } else {
-                                               value = meta.def();
+                                               value = null;
                                        }
 
                                        this.map.put(id.name(), value == null ? null : value.trim());