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

Android: String.format causes crash on empty value, works on iOS

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
      None

      Description

      When using String.format on Android, the app crashes. The same works as expected on iOS. Example:

      const person = 'You';
      String.format(L('%s said hi!'), person)
      

      Update: This seems to be triggered by TIMOB-26545 and can be workarounded by supplying a 2nd argument to the L() call.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hknoechel Hans Knöchel
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code