diff options
author | Ruben <rglez@google.com> | 2014-05-30 20:25:26 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-30 20:25:26 +0000 |
commit | a73a6ae9b11350744c8820ed583f79ecd97fc426 (patch) | |
tree | 1396442e4b3f76dc704d2eb52b47385c14852042 | |
parent | 6ad6101efea106dde0f67448d43559afe9f639f1 (diff) | |
parent | f455054e71f9eb74204454d5b13dbb67e546be52 (diff) | |
download | android_frameworks_opt_datetimepicker-a73a6ae9b11350744c8820ed583f79ecd97fc426.tar.gz android_frameworks_opt_datetimepicker-a73a6ae9b11350744c8820ed583f79ecd97fc426.tar.bz2 android_frameworks_opt_datetimepicker-a73a6ae9b11350744c8820ed583f79ecd97fc426.zip |
am f455054e: am e0a0cb28: Check if mController is null
* commit 'f455054e71f9eb74204454d5b13dbb67e546be52':
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; |