Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23441

Android: Crash when using undefined value for separatorStyle

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 5.4.0
    • Component/s: Android
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      2016 Sprint 11 SDK

      Description

      This is to address the issue in TIMOB-20258.
      Anna crash is with this line

       [ERROR] : TiApplication: at org.appcelerator.titanium.util.TiConvert.toInt(TiConvert.java:412) 

      This has nothing to do with the runtime warnings in TIMOB-20258.

      This issue is created to address that crash.
      A PR has already been created by Hieu Pham to address the issue:-
      https://github.com/appcelerator/titanium_mobile/pull/8020

      Test code:

      var win = Ti.UI.createWindow();
      var tableView = Ti.UI.createTableView({separatorStyle: Ti.UI.iPhone.TableViewSeparatorStyle.SINGLE_LINE});
      win.add(tableView);
      win.open();
      

      Expected results:
      App should not crash when running on Android. Prior to this. It will crash.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hpham Hieu Pham
                Reporter:
                msamah Ashraf Abu (Inactive)
                Reviewer:
                Ashraf Abu (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-9777
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code