Genius-pig commented on a change in pull request #777: [IoTDB-400] Support rest api URL: https://github.com/apache/incubator-iotdb/pull/777#discussion_r376983082
########## File path: server/src/main/java/org/apache/iotdb/db/metrics/server/ServerArgument.java ########## @@ -66,7 +67,7 @@ private String inferHostname() { } catch (UnknownHostException e) { logger.error("The host is unknow", e); } - return ia.getHostName(); + return Objects.requireNonNull(ia).getHostName(); Review comment: fixed. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services