We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e11e9a0 commit f2dbb37Copy full SHA for f2dbb37
1 file changed
src/main/java/com/xwintop/xJavaFxTool/utils/VersionChecker.java
@@ -23,6 +23,12 @@ public static void checkNewVersion() {
23
JSONObject node = JSON.parseObject(json);
24
final String latestVersion = node.getString("tag_name");
25
final String features = node.getString("body");
26
+
27
+ if (latestVersion == null) {
28
+ log.info("检查新版本失败");
29
+ return;
30
+ }
31
32
if (isLargerThanCurrent(latestVersion)) {
33
final String content = new StringBuilder()
34
.append("版本名:").append(node.getString("name")).append("\r\n")
0 commit comments