Skip to content

Commit

Permalink
Merge pull request #12382 from BrentEaston/BeanshellStartUp
Browse files Browse the repository at this point in the history
12382 - Prevent NPE in Beanshell execution during module initialisation
  • Loading branch information
uckelman authored Jun 18, 2023
2 parents 4d8adb4 + d5353b8 commit ea3ad3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public String evaluate(PropertySource ps, java.util.Map<String, String> properti
// Check for a propoerty in the passed property Map, then check the source if not found
Object prop = properties == null ? null : properties.get(name);
if (prop == null) {
prop = localized ? source.getLocalizedProperty(name) : source.getProperty(name);
prop = (source == null) ? "" : localized ? source.getLocalizedProperty(name) : source.getProperty(name);
}
final String value = prop == null ? "" : prop.toString();
if (audit != null) {
Expand Down

0 comments on commit ea3ad3a

Please sign in to comment.