diff --git a/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js b/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js index 734a59abf72cf4..3fb4b0888b5a95 100644 --- a/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js +++ b/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js @@ -18,7 +18,7 @@ const DatePickerModule = require('NativeModules').DatePickerAndroid; function _toMillis(options: Object, key: string) { const dateVal = options[key]; // Is it a Date object? - if (typeof dateVal === 'object' && typeof dateVal.getMonth === 'function') { + if (dateVal != null && typeof dateVal == 'object' && typeof dateVal.getMonth === 'function') { options[key] = dateVal.getTime(); } }