aloyszhang commented on code in PR #10654: URL: https://github.com/apache/inlong/pull/10654#discussion_r1682282662
########## inlong-agent/agent-installer/src/main/java/org/apache/inlong/agent/installer/ModuleManager.java: ########## @@ -255,7 +264,10 @@ public void restoreFromLocalFile(String confPath) { JsonElement tmpElement = JsonParser.parseReader(reader).getAsJsonObject(); ConfigResult curConfig = GSON.fromJson(tmpElement.getAsJsonObject(), ConfigResult.class); if (curConfig.getMd5() != null && curConfig.getModuleList() != null) { - currentMd5 = curConfig.getMd5(); + if (curConfig.getMd5() != null && curConfig.getVersion() != null) { Review Comment: duplicated check `curConfig.getMd5() != null` -- 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. To unsubscribe, e-mail: commits-unsubscr...@inlong.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org