Skip to content

Commit

Permalink
Merge pull request #144 from shabanovd/develop
Browse files Browse the repository at this point in the history
fix getPropertyMap code (it always return null)
  • Loading branch information
wolfgangmm committed Feb 6, 2014
2 parents e70c01a + 8fc5b93 commit e44003e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/org/exist/config/ConfigurationImpl.java
Expand Up @@ -138,6 +138,7 @@ private void cache() {
}
} else {
props.put(name, child.getNodeValue());
names.add(name);
}
}
}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit e44003e

Please sign in to comment.