Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1942] Android: date picker causes a NPE if maxDate/minDate not used

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:57:36.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsAndroid
Labelsandroid, defect
ReporterBill Dawson
AssigneeBill Dawson
Created2011-04-15T03:06:13.000+0000
Updated2011-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();

Comments

  1. Bill Dawson 2011-04-15

    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...

  2. Thomas Huelbert 2011-04-15

    G1 (1.6), sim 2.2 1.4.25935b3

JSON Source