Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-4435

DataManager - Memory - read/filter/etc. fails when store is empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 1.3.0
    • None
    • None

      var emptyStore = AeroGear.DataManager( "empty" ).stores.empty;
      
      
      deepEqual( emptyStore.read(), [], "Read initial data from empty store" ); -> returns null
      deepEqual( emptyStore.read( 12345 ), [], "Read non-existing item" ); -> fails with null reference exception
      

              lfryc Lukáš Fryč (Inactive)
              lfryc Lukáš Fryč (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: