# \[DEVICE ONLY\] - ERROR TypeError: Cannot read property 'null' of null

**URL:** <https://forum.ionicframework.com/t/device-only-error-typeerror-cannot-read-property-null-of-null/143894>\
**Category:** ionic-v3\
**Created:** [October 7, 2018, 2:51pm UTC](https://forum.ionicframework.com/t/device-only-error-typeerror-cannot-read-property-null-of-null/143894 "2018-10-07T14:51:19Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [October 12, 2018, 8:55pm UTC](https://forum.ionicframework.com/t/device-only-error-typeerror-cannot-read-property-null-of-null/143894/5 "2018-10-12T20:55:25Z")

</div>

> [@Olivier-Tvx](#):
>
> Don’t know why i = null when app start.

This is a classic race condition. `loadSavedCards()` doesn’t return anything, so nobody has any clue when it has done its work. See [this post](https://forum.ionicframework.com/t/ionic-app-loading-sequence/100109/11). You must have a contingency plan in place to deal with `i` being in an indeterminate state (like a loading spinner).

---

_[View the full topic](https://forum.ionicframework.com/t/device-only-error-typeerror-cannot-read-property-null-of-null/143894)._
