diff --git a/pom.xml b/pom.xml
index 86ad606..febe935 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
4.0.0
cn.citycraft
Yum
- 1.7.3
+ 1.7.4
Yum
Minecraft 服务器插件管理系统
@@ -55,7 +55,7 @@
http://ci.citycraft.cn:8080
- &3修复一个迭代错误 &a安装插件时命名为插件名称...
+ 修复更新仓库时产生的NPE错误...
UTF-8
diff --git a/src/main/java/cn/citycraft/Yum/manager/RepositoryManager.java b/src/main/java/cn/citycraft/Yum/manager/RepositoryManager.java
index f19e17b..517fc12 100644
--- a/src/main/java/cn/citycraft/Yum/manager/RepositoryManager.java
+++ b/src/main/java/cn/citycraft/Yum/manager/RepositoryManager.java
@@ -48,7 +48,7 @@ public class RepositoryManager {
public boolean addPackage(final CommandSender sender, final String urlstring) {
final String json = getHtml(urlstring);
- if (json.isEmpty()) {
+ if (json == null || json.isEmpty()) {
return false;
}
final PackageInfo pkg = jsonToPackage(json);
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 798580b..21b6bd7 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -1,7 +1,7 @@
name: ${project.artifactId}
description: ${project.description}
main: ${project.groupId}.${project.artifactId}.${project.artifactId}
-version: ${project.version}
+version: ${project.version}-Build#${env.BUILD_NUMBER}
author: 喵♂呜
website: ${jenkins.url}/job/${project.artifactId}/
commands: