修复更新仓库时产生的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

@ -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);