Skip to content

Commit

Permalink
this utility is invoked even before agent initiallization which makes…
Browse files Browse the repository at this point in the history
… logger null and may cause NPE.
  • Loading branch information
lovesh-ap committed Dec 16, 2024
1 parent 28b3abe commit 0cc841e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,9 @@ public void setApplicationConnectionConfig(int port, String scheme) {
AppServerInfo appServerInfo = AppServerInfoHelper.getAppServerInfo();
ServerConnectionConfiguration serverConnectionConfiguration = new ServerConnectionConfiguration(port, scheme);
appServerInfo.getConnectionConfiguration().put(port, serverConnectionConfiguration);
logger.log(LogLevel.FINER, String.format("Unconfirmed connection configuration for port %d and scheme %s added.", port, scheme), this.getClass().getName());
if(logger != null) {
logger.log(LogLevel.FINER, String.format("Unconfirmed connection configuration for port %d and scheme %s added.", port, scheme), this.getClass().getName());
}
// verifyConnectionAndPut(port, scheme, appServerInfo);
}

Expand Down

0 comments on commit 0cc841e

Please sign in to comment.