1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-11-21 01:38:51 +00:00

fix: 修复不存在Tag的报错

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2017-02-08 10:59:31 +08:00
parent 6cdc5a41d3
commit 80dae0333b

View File

@ -283,6 +283,8 @@ public class SubscribeTask implements Runnable, Listener {
String result = def;
try {
result = document.getElementsByTagName(tag).item(0).getTextContent();
} catch (NullPointerException ignored) {
Log.d("当前插件不存在标签 %s 使用默认值 %s !", tag, def);
} catch (Exception e) {
Log.d(e);
}