修复更新仓库时产生的NPE错误 添加构建标识符...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-11-02 13:17:59 +08:00
parent 6c4811218c
commit d755b700d1
3 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>cn.citycraft</groupId> <groupId>cn.citycraft</groupId>
<artifactId>Yum</artifactId> <artifactId>Yum</artifactId>
<version>1.7.3</version> <version>1.7.4</version>
<name>Yum</name> <name>Yum</name>
<description>Minecraft 服务器插件管理系统</description> <description>Minecraft 服务器插件管理系统</description>
<build> <build>
@ -55,7 +55,7 @@
</build> </build>
<properties> <properties>
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url> <jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
<update.description>&amp;3修复一个迭代错误 &amp;a安装插件时命名为插件名称...</update.description> <update.description>修复更新仓库时产生的NPE错误...</update.description>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<repositories> <repositories>

View File

@ -48,7 +48,7 @@ public class RepositoryManager {
public boolean addPackage(final CommandSender sender, final String urlstring) { public boolean addPackage(final CommandSender sender, final String urlstring) {
final String json = getHtml(urlstring); final String json = getHtml(urlstring);
if (json.isEmpty()) { if (json == null || json.isEmpty()) {
return false; return false;
} }
final PackageInfo pkg = jsonToPackage(json); final PackageInfo pkg = jsonToPackage(json);

View File

@ -1,7 +1,7 @@
name: ${project.artifactId} name: ${project.artifactId}
description: ${project.description} description: ${project.description}
main: ${project.groupId}.${project.artifactId}.${project.artifactId} main: ${project.groupId}.${project.artifactId}.${project.artifactId}
version: ${project.version} version: ${project.version}-Build#${env.BUILD_NUMBER}
author: 喵♂呜 author: 喵♂呜
website: ${jenkins.url}/job/${project.artifactId}/ website: ${jenkins.url}/job/${project.artifactId}/
commands: commands: