Skip to content

Commit

Permalink
* Fix NPE in unpackLazy
Browse files Browse the repository at this point in the history
  • Loading branch information
ag-ramachandran committed Jan 30, 2025
1 parent 142bc4b commit 823d0d3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public ClientDetails(String applicationForTracing, String userNameForTracing, St

private static String unpackLazy(String key) {
if(DEFAULT_APPLICATION.equalsIgnoreCase(key)) {
return defaultValues.putIfAbsent(key, UriUtils.stripFileNameFromCommandLine(System.getProperty("sun.java.command")));
return defaultValues.computeIfAbsent(key,
k->UriUtils.stripFileNameFromCommandLine(System.getProperty("sun.java.command")));
} else if(DEFAULT_USER.equalsIgnoreCase(key)) {
return defaultValues.computeIfAbsent(key, k -> {
String user = System.getProperty("user.name");
Expand Down

0 comments on commit 823d0d3

Please sign in to comment.