File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spring-core/src/main/java/org/springframework/core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2012 the original author or authors.
2
+ * Copyright 2002-2015 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -122,7 +122,7 @@ public void resolveAliases(StringValueResolver valueResolver) {
122
122
String registeredName = aliasCopy .get (alias );
123
123
String resolvedAlias = valueResolver .resolveStringValue (alias );
124
124
String resolvedName = valueResolver .resolveStringValue (registeredName );
125
- if (resolvedAlias .equals (resolvedName )) {
125
+ if (resolvedAlias == null || resolvedName == null || resolvedAlias .equals (resolvedName )) {
126
126
this .aliasMap .remove (alias );
127
127
}
128
128
else if (!resolvedAlias .equals (alias )) {
You can’t perform that action at this time.
0 commit comments