mirror of https://e.coding.net/circlecloud/Yum.git
parent
38f1a66465
commit
6be0ea2b06
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue