Permalink
Browse files

fix getPropertyMap code (it always return null)

  • Loading branch information...
1 parent 54b5b74 commit fdd3a840607f19ccd21ce288beebd0d8d2b2af9a @shabanovd shabanovd committed Feb 6, 2014
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/org/exist/config/ConfigurationImpl.java
View
9 src/org/exist/config/ConfigurationImpl.java
@@ -138,6 +138,7 @@ private void cache() {
}
} else {
props.put(name, child.getNodeValue());
+ names.add(name);
}
}
}
@@ -190,10 +191,12 @@ public String getProperty(String name, String default_property) {
@Override
public Map<String, String> getPropertyMap(String name) {
- if (props.containsKey(name))
- return null;
-
final Map<String, String> map = new HashMap<String, String>();
+
+ if (hasProperty(name)) {
+ map.put(name, getProperty(name));
+ return map;
+ }
Node child = getFirstChild();
while (child != null) {

0 comments on commit fdd3a84

Please sign in to comment.