# Getting "null" value from Firebase Realtime DB when trying to display in app

**URL:** <https://community.thunkable.com/t/getting-null-value-from-firebase-realtime-db-when-trying-to-display-in-app/2194175>\
**Category:** Issues / Bugs\
**Created:** [December 27, 2022, 6:09pm UTC](https://community.thunkable.com/t/getting-null-value-from-firebase-realtime-db-when-trying-to-display-in-app/2194175 "2022-12-27T18:09:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![angadpannu08nwr](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@angadpannu08nwr](https://community.thunkable.com/u/angadpannu08nwr)\
**Post date:** [December 27, 2022, 6:09pm UTC](https://community.thunkable.com/t/getting-null-value-from-firebase-realtime-db-when-trying-to-display-in-app/2194175/1 "2022-12-27T18:09:14Z")

</div>

In my app, I take data from my realtime DB in firebase and display values into my thunkable app. Earlier, it was working fine, but all of a sudden now my display labels show “null” values even though the firebase realtime db is working fine. Here is a snapshot of my code that is supposed to retrieve data:

 ![Screenshot 2022-12-27 130653](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/2/c2df673a31b32ea77a7a3d76222136f6df735eb3.png)

One thing that may be wrong is that I do not have an addlistener, however i’m not sure how it works. Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 27, 2022, 9:58pm UTC](https://community.thunkable.com/t/getting-null-value-from-firebase-realtime-db-when-trying-to-display-in-app/2194175/2 "2022-12-27T21:58:09Z")

</div>

You should always error check when there is a green error block. You can set it up so that if [error] then set label’s text to error.

After 30 days, Firebase locks the database and you have to modify the rules (permissions). Could that be what happened?

Also, are you sure your data is formatted as an object of an object?

---

<div class="post-metadata">

**Author:** ![angadpannu08nwr](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@angadpannu08nwr](https://community.thunkable.com/u/angadpannu08nwr)\
**Post date:** [December 28, 2022, 3:19pm UTC](https://community.thunkable.com/t/getting-null-value-from-firebase-realtime-db-when-trying-to-display-in-app/2194175/3 "2022-12-28T15:19:01Z")

</div>

I used the if error then method, I got nothing, also how would I know my db is locked, since I tested the rules in rules playground and they allow read and write from my desired location.

Object of an object? What does that mean, how can I make sure that is how its formatted??

---

<div class="post-metadata">

**Author:** ![angadpannu08nwr](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@angadpannu08nwr](https://community.thunkable.com/u/angadpannu08nwr)\
**Post date:** [December 28, 2022, 6:16pm UTC](https://community.thunkable.com/t/getting-null-value-from-firebase-realtime-db-when-trying-to-display-in-app/2194175/4 "2022-12-28T18:16:24Z")

</div>

@tatiang do i need an addlistener? and is there a problem with my coding i showed in the screenshot?

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:12pm UTC](https://community.thunkable.com/t/getting-null-value-from-firebase-realtime-db-when-trying-to-display-in-app/2194175/5 "2024-11-08T13:12:36Z")

</div>


