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

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

    Details

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

      SDK 6.1.0.GA

    • Story Points:
      5
    • Sprint:
      2017 Sprint 13 SDK

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                sliang Shuo Liang
                Reviewer:
                Gary Mathews
                Tester:
                Ewan Harris
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code