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 11/*
2- * Copyright 2002-2012 the original author or authors.
2+ * Copyright 2002-2015 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -122,7 +122,7 @@ public void resolveAliases(StringValueResolver valueResolver) {
122122 String registeredName = aliasCopy .get (alias );
123123 String resolvedAlias = valueResolver .resolveStringValue (alias );
124124 String resolvedName = valueResolver .resolveStringValue (registeredName );
125- if (resolvedAlias .equals (resolvedName )) {
125+ if (resolvedAlias == null || resolvedName == null || resolvedAlias .equals (resolvedName )) {
126126 this .aliasMap .remove (alias );
127127 }
128128 else if (!resolvedAlias .equals (alias )) {
You can’t perform that action at this time.
0 commit comments