diff options
author | Ruben <rglez@google.com> | 2014-05-30 20:23:12 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-30 20:23:12 +0000 |
commit | f455054e71f9eb74204454d5b13dbb67e546be52 (patch) | |
tree | 40a697177ae8f5ac813165d7372391f8cc604e8b | |
parent | 8beb48cdd92b4c381c0512a8e4d3ef595244e11f (diff) | |
parent | e0a0cb288106e3a25441ea57a123a812929ec79c (diff) | |
download | android_frameworks_opt_datetimepicker-f455054e71f9eb74204454d5b13dbb67e546be52.tar.gz android_frameworks_opt_datetimepicker-f455054e71f9eb74204454d5b13dbb67e546be52.tar.bz2 android_frameworks_opt_datetimepicker-f455054e71f9eb74204454d5b13dbb67e546be52.zip |
am e0a0cb28: Check if mController is null
* commit 'e0a0cb288106e3a25441ea57a123a812929ec79c':
Check if mController is null
-rw-r--r-- | src/com/android/datetimepicker/date/MonthView.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/datetimepicker/date/MonthView.java b/src/com/android/datetimepicker/date/MonthView.java index 1924890..270256c 100644 --- a/src/com/android/datetimepicker/date/MonthView.java +++ b/src/com/android/datetimepicker/date/MonthView.java @@ -576,6 +576,9 @@ public abstract class MonthView extends View { } private boolean isBeforeMin(int year, int month, int day) { + if (mController == null) { + return false; + } Calendar minDate = mController.getMinDate(); if (minDate == null) { return false; @@ -601,6 +604,9 @@ public abstract class MonthView extends View { } private boolean isAfterMax(int year, int month, int day) { + if (mController == null) { + return false; + } Calendar maxDate = mController.getMaxDate(); if (maxDate == null) { return false; |