[TIMOB-26544] Android: String.format causes crash on empty value, works on iOS
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2019-02-28T23:17:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Unknown |
Created | 2018-11-10T20:13:20.000+0000 |
Updated | 2019-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
- Gary Mathews 2019-02-28