Avoid NPE when replacement property does not exist

See gh-15394
This commit is contained in:
hdeadman
2018-12-05 18:11:50 -05:00
committed by Stephane Nicoll
parent 6906859a60
commit a1b71ef910
4 changed files with 29 additions and 0 deletions

View File

@@ -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(',');