Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24838] Windows: Ti.App.Properties getList and getObject don't work properly when we set a default value.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-06-26T16:07:13.000+0000
Affected Version/sRelease 6.1.0
Fix Version/sRelease 6.2.0
ComponentsWindows
Labelsn/a
ReporterShuo Liang
AssigneeKota Iguchi
Created2017-06-16T00:17:32.000+0000
Updated2017-07-12T10:04:40.000+0000

Description

Reproduce

1. Run the following code in a default project.
console.log('Hello3' + Ti.App.Properties.getList('User', null));
console.log('Hello4' + Ti.App.Properties.getObject('User', null));
2. It will return the following error
Throw a runtime error:
[ERROR] ----- Titanium Javascript Runtime Error -----
[ERROR] In app.js: 87,53
[ERROR] Message: Uncaught Error: null is not an object

Note

1. On Android and iOS it works properly 2. If we set List or Object first by ourself, not default one. It works well. 3. If try to use "console.log('Hello3' + Ti.App.Properties.getList('User'));" and the object does not exist.

Comments

  1. Kota Iguchi 2017-06-20

    https://github.com/appcelerator/titanium_mobile_windows/pull/1015
  2. Ewan Harris 2017-06-26

    FR Passed! borderRadius now works on Ti.UI.View Test Environment Studio: 4.9.0.201705302345 Appc CLI: 6.2.2 Appc NPM: 4.2.9 Nokia Lumia 550 Windows 10 Mobile emulator 10.0.14393 Windows 10 Pro 10.0.15063
  3. Ewan Harris 2017-07-12

    Fix seen in 6.2.0.v20170711165607, closing ticket

JSON Source