From 415abee178cb22466413097ff7c0e3638b02765e Mon Sep 17 00:00:00 2001 From: Piotr Giedziun Date: Sun, 25 Oct 2015 12:18:41 +0100 Subject: [PATCH] [FIX] NullPointerException for API 10 --- .../src/main/java/com/gc/materialdesign/views/CheckBox.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/CheckBox.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/CheckBox.java index 27b41de..38c1a70 100644 --- a/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/CheckBox.java +++ b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/CheckBox.java @@ -106,7 +106,8 @@ public void run() { @Override public void invalidate() { - checkView.invalidate(); + if(null != checkView) + checkView.invalidate(); super.invalidate(); }