Permalink
Browse files

Merge pull request #144 from shabanovd/develop

fix getPropertyMap code (it always return null)
  • Loading branch information...
2 parents e70c01a + 8fc5b93 commit e44003e73f5df35635f9625629b4adc50db1b296 @wolfgangmm wolfgangmm committed Feb 6, 2014
Showing with 6 additions and 3 deletions.
  1. +6 −3 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 e44003e

Please sign in to comment.