mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-11-22 14:28:46 +00:00
check repo null while update repo...
Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
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
Block a user