mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-11-22 01:48:50 +00:00
fix: 修复不存在Tag的报错
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
6cdc5a41d3
commit
80dae0333b
@ -283,6 +283,8 @@ public class SubscribeTask implements Runnable, Listener {
|
|||||||
String result = def;
|
String result = def;
|
||||||
try {
|
try {
|
||||||
result = document.getElementsByTagName(tag).item(0).getTextContent();
|
result = document.getElementsByTagName(tag).item(0).getTextContent();
|
||||||
|
} catch (NullPointerException ignored) {
|
||||||
|
Log.d("当前插件不存在标签 %s 使用默认值 %s !", tag, def);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.d(e);
|
Log.d(e);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user