Description
When running kitchensink on Android and clicking an option dialog button I'm getting the below error. It looks to be because the destructive/cancel properties aren't defined so we're setting them to null, we shouldn't set these properties if they aren't defined in the xml
[ERROR] InputEventReceiver: Exception dispatching input event.
[ERROR] E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback
[ERROR] E/MessageQueue-JNI: java.lang.NumberFormatException: Unable to convert null
[ERROR] E/MessageQueue-JNI: at org.appcelerator.titanium.util.TiConvert.toInt(TiConvert.java:419)
[ERROR] E/MessageQueue-JNI: at ti.modules.titanium.ui.widget.TiUIDialog.handleEvent(TiUIDialog.java:364)
[ERROR] E/MessageQueue-JNI: at ti.modules.titanium.ui.widget.TiUIDialog$1.onClick(TiUIDialog.java:122)
Steps to reproduce
1. Build kitchensink
2. Click option dialog
3. Open the option dialog
4. Select an option
Actual
Above error
Expected
No error
https://github.com/appcelerator/alloy/pull/926
*Closing ticket*, Fix verified in CLI Version
7.1.0-master.21
No runtime error was seen on KitchenSink-v2 when testing the 'option dialog' section. *Test Steps* 1. Built kitchensink-v2 2. Clicked on the option dialog 3. Opened the option dialog 4. Selected an option 5. Able to see no run time error and the console displayed its index number (selected each option)*Test Environment*