From 80dae0333b9bcf2d8209fff0a74cc1fc7c9856b7 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Wed, 8 Feb 2017 10:59:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=8D=E5=AD=98?= =?UTF-8?q?=E5=9C=A8Tag=E7=9A=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- src/main/java/pw/yumc/YumCore/update/SubscribeTask.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/pw/yumc/YumCore/update/SubscribeTask.java b/src/main/java/pw/yumc/YumCore/update/SubscribeTask.java index 7202351..d1d08c4 100644 --- a/src/main/java/pw/yumc/YumCore/update/SubscribeTask.java +++ b/src/main/java/pw/yumc/YumCore/update/SubscribeTask.java @@ -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); }