[TIMOB-1942] Android: date picker causes a NPE if maxDate/minDate not used
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:57:36.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.5.0 |
| Components | Android |
| Labels | android, defect |
| Reporter | Bill Dawson |
| Assignee | Bill Dawson |
| Created | 2011-04-15T03:06:13.000+0000 |
| Updated | 2011-04-17T01:57:36.000+0000 |
Description
Failcase: Use the following as your app.js, then when the date picker appears choose any date and you'll get a crash
Titanium.UI.setBackgroundColor('#000');
var win = Titanium.UI.createWindow({
title:'Test',
backgroundColor:'#fff',
fullscreen: true,
exitOnClose: true
});
win.add( Ti.UI.createPicker({ type: Ti.UI.PICKER_TYPE_DATE }) );
win.open();
As I am wont to do, I forgot to put ticket information into the commit. Here it is:
http://github.com/appcelerator/titanium_mobile/commit/bee013ddfae5a364fb902813f792c4662066b529"> http://github.com/appcelerator/titanium_mobile/commit/bee013ddfae5a...
G1 (1.6), sim 2.2 1.4.25935b3