Skip to content

Commit

Permalink
fix NPE in ApiBaseline.initialize #689
Browse files Browse the repository at this point in the history
  • Loading branch information
EcljpseB0T authored and jukzi committed Aug 29, 2023
1 parent 54ae301 commit 2a3e9e4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@ private void initialize(Properties profile, ExecutionEnvironmentDescription desc
}
if (!(this instanceof WorkspaceBaseline)) {
Dictionary<String, Object> dictionary = new Hashtable<>();
dictionary.put(Constants.FRAMEWORK_SYSTEMPACKAGES, value);
if (value != null) {
dictionary.put(Constants.FRAMEWORK_SYSTEMPACKAGES, value);
}
value = profile.getProperty(Constants.FRAMEWORK_EXECUTIONENVIRONMENT);
if (value != null) {
dictionary.put(Constants.FRAMEWORK_EXECUTIONENVIRONMENT, value);
Expand Down

0 comments on commit 2a3e9e4

Please sign in to comment.