Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1653

Runtime error on Android when using optiondialog and not declaring destructive or cancel properties

    Details

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                eharris Ewan Harris
                Reporter:
                eharris Ewan Harris
                Reviewer:
                Feon Sua Xin Miao
                Tester:
                Samir Mohammed
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Alloy <> Alloy
                    Synced with:
                    ALOY-15
                    Sync status:
                    PENDING
                    Last received:
                    Last sent:

                    Git Source Code