mirror of https://github.com/apache/openjpa.git
OPENJPA-1452 Configurations attempts to modiy an umodifiable map. Add null checks back in to match 1.2/1.3 branches.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@897284 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6710465b7c
commit
3065f2febb
|
@ -675,6 +675,8 @@ public class Configurations {
|
||||||
* possible configuration prefix.
|
* possible configuration prefix.
|
||||||
*/
|
*/
|
||||||
public static Object removeProperty(String partialKey, Map props) {
|
public static Object removeProperty(String partialKey, Map props) {
|
||||||
|
if (partialKey == null || props == null || props.isEmpty())
|
||||||
|
return null;
|
||||||
if (containsProperty(partialKey, props))
|
if (containsProperty(partialKey, props))
|
||||||
return props.remove(ProductDerivations.getConfigurationKey(partialKey, props));
|
return props.remove(ProductDerivations.getConfigurationKey(partialKey, props));
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue