Skip to content

Commit

Permalink
MID-8842 ninja - npe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Sep 5, 2023
1 parent 238539f commit 96f39fe
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ private void backupAndUpdateSystemProperty(String key, String value) {
String oldValue = System.getProperty(key);
systemPropertiesBackup.put(key, oldValue);

System.setProperty(key, value);
if (value != null) {
System.setProperty(key, value);
} else {
System.clearProperty(key);
}
}

private void overrideRepoConfiguration(ConnectionOptions options) {
Expand Down

0 comments on commit 96f39fe

Please sign in to comment.