From d6aa3174fdb350036f04acc4f5ce028f2ebc5578 Mon Sep 17 00:00:00 2001 From: seven332 Date: Wed, 31 Dec 2014 22:07:25 +0800 Subject: [PATCH] update --- src/com/hippo/ehviewer/util/Utils.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/com/hippo/ehviewer/util/Utils.java b/src/com/hippo/ehviewer/util/Utils.java index 0bc760742..4bb7d4f99 100644 --- a/src/com/hippo/ehviewer/util/Utils.java +++ b/src/com/hippo/ehviewer/util/Utils.java @@ -46,7 +46,7 @@ import com.hippo.ehviewer.AppHandler; public final class Utils { @SuppressWarnings("unused") - private static String TAG = "Util"; + private static String TAG = Utils.class.getSimpleName(); public static final boolean SUPPORT_IMAGE; @SuppressLint("SimpleDateFormat") @@ -626,6 +626,9 @@ public final class Utils { * @return */ public static boolean isInArea(int[] area, int x, int y) { + if (area == null) + throw new NullPointerException("area is null in " + + Utils.class.getName() + ".isInArea"); if (area.length != 4) throw new IllegalArgumentException( "area's length should be 4, but it's length is " + area.length);