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

Android: Crash when clicking on label with SpannedString content

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 6.2.0
    • Component/s: Android
    • Labels:
    • Environment:

      Android
      Titanium 6.1.2GA up to master branch

    • Story Points:
      1
    • Sprint:
      2017 Sprint 17 SDK

      Description

      TiUILabel sometimes crashes (rare) in onTouchEvent when clicking on a html link.

      The bug is that the code calls:
      Layout layout = textView.getLayout();
      there is no test for:
      layout != null
      getLayout() can return null as described in the documentation.

      It's hard to reproduce because the content of the textView has to change right before the click.

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              buddyguards grebulon
              Tester:
              Abir Mukherjee
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code