Skip to content

Commit

Permalink
#718 fix NPE when a groupId contains an unknown property
Browse files Browse the repository at this point in the history
  • Loading branch information
evernat committed Jan 10, 2018
1 parent 23171a9 commit c9d0dc2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,10 @@ private static String replaceProperty(String value, Map<String, String> properti
if (value != null && value.startsWith("${") && value.endsWith("}")) {
final String propertyName = value.substring("${".length(),
value.length() - "}".length());
return properties.get(propertyName);
final String propertyValue = properties.get(propertyName);
if (propertyValue != null) {
return propertyValue;
}
}
return value;
}
Expand Down

0 comments on commit c9d0dc2

Please sign in to comment.