summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuben <rglez@google.com>2014-05-30 20:25:26 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-05-30 20:25:26 +0000
commita73a6ae9b11350744c8820ed583f79ecd97fc426 (patch)
tree1396442e4b3f76dc704d2eb52b47385c14852042
parent6ad6101efea106dde0f67448d43559afe9f639f1 (diff)
parentf455054e71f9eb74204454d5b13dbb67e546be52 (diff)
downloadandroid_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.java6
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;