add YumApi...

Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
j502647092
2015-10-07 13:19:38 +08:00
parent f1b5551cf2
commit 88cec09019
4 changed files with 22 additions and 4 deletions

View File

@ -141,11 +141,11 @@ public class RepositoryManager {
final String repocache = config.getString("repocache");
final String plugincache = config.getString("plugincache");
try {
if (!repocache.isEmpty()) {
if (repocache != null && !repocache.isEmpty()) {
repos = gson.fromJson(repocache, new TypeToken<List<String>>() {
}.getType());
}
if (!plugincache.isEmpty()) {
if (plugincache != null && !plugincache.isEmpty()) {
plugins = gson.fromJson(plugincache, new TypeToken<HashMap<String, PluginInfo>>() {
}.getType());
}