Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26544] Android: String.format causes crash on empty value, works on iOS

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2019-02-28T23:17:01.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterHans Knöchel
AssigneeUnknown
Created2018-11-10T20:13:20.000+0000
Updated2019-02-28T23:17:01.000+0000

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.

Comments

  1. Gary Mathews 2019-02-28

JSON Source