check repo null while update repo...

Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
j502647092 2015-10-10 20:37:33 +08:00
parent 38f1a66465
commit 6be0ea2b06

View File

@ -203,11 +203,11 @@ public class RepositoryManager {
urlstring = urlstring + "/repo.info";
}
final String json = getHtml(urlstring);
if (json.isEmpty()) {
if (json == null || json.isEmpty()) {
return false;
}
final List<Repository> lrepo = jsonToRepositories(json);
if (lrepo.isEmpty()) {
if (lrepo == null || lrepo.isEmpty()) {
return false;
}
for (final Repository repository : lrepo) {