Avoid NPE when replacement property does not exist
See gh-15394
This commit is contained in:
committed by
Stephane Nicoll
parent
6906859a60
commit
a1b71ef910
@@ -137,6 +137,9 @@ class PropertiesMigrationReporter {
|
||||
if (lastDot != -1) {
|
||||
ConfigurationMetadataProperty property = this.allProperties
|
||||
.get(fullId.substring(0, lastDot));
|
||||
if (property == null) {
|
||||
return null;
|
||||
}
|
||||
String type = property.getType();
|
||||
if (type != null && type.startsWith(Map.class.getName())) {
|
||||
int lastComma = type.lastIndexOf(',');
|
||||
|
||||
Reference in New Issue
Block a user