You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rs...@apache.org on 2004/08/17 20:32:06 UTC
cvs commit: jakarta-commons/discovery/src/java/org/apache/commons/discovery/tools ManagedProperties.java
rsitze 2004/08/17 11:32:06
Modified: discovery/src/java/org/apache/commons/discovery/tools
ManagedProperties.java
Log:
Revision Changes Path
1.7 +4 -2 jakarta-commons/discovery/src/java/org/apache/commons/discovery/tools/ManagedProperties.java
Index: ManagedProperties.java
===================================================================
RCS file: /home/cvs/jakarta-commons/discovery/src/java/org/apache/commons/discovery/tools/ManagedProperties.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ManagedProperties.java 27 Feb 2004 23:36:56 -0000 1.6
+++ ManagedProperties.java 17 Aug 2004 18:32:06 -0000 1.7
@@ -164,13 +164,15 @@
HashMap properties = (HashMap)propertiesCache.get(classLoader);
if (value == null) {
- properties.remove(propertyName);
+ if (properties != null) {
+ properties.remove(propertyName);
+ }
} else {
if (properties == null) {
properties = new HashMap();
propertiesCache.put(classLoader, properties);
}
-
+
properties.put(propertyName, new Value(value, isDefault));
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org