Skip to content

Commit 1eb1136

Browse files
Add a gourd clause.
#1004 (comment)
1 parent b21c38f commit 1eb1136

File tree

1 file changed

+1
-0
lines changed
  • android/src/main/java/com/reactcommunity/rndatetimepicker

1 file changed

+1
-0
lines changed

android/src/main/java/com/reactcommunity/rndatetimepicker/Common.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ public static DialogInterface.OnShowListener openYearDialog(final AlertDialog di
102102
DatePicker datePicker = datePickerDialog.getDatePicker();
103103

104104
int yearId = Resources.getSystem().getIdentifier("date_picker_header_year", "id", "android");
105+
if (yearId == 0) return;
105106
View yearView = datePicker.findViewById(yearId);
106107
if (yearView != null) {
107108
yearView.performClick();

0 commit comments

Comments
 (0)