# Error: style: null found, style-formatted object expected

**URL:** <https://forum.inductiveautomation.com/t/error-style-null-found-style-formatted-object-expected/59307>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 6, 2022, 5:16pm UTC](https://forum.inductiveautomation.com/t/error-style-null-found-style-formatted-object-expected/59307 "2022-05-06T17:16:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattEbert94](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@MattEbert94](https://forum.inductiveautomation.com/u/MattEbert94)\
**Post date:** [May 6, 2022, 5:16pm UTC](https://forum.inductiveautomation.com/t/error-style-null-found-style-formatted-object-expected/59307/1 "2022-05-06T17:16:57Z")

</div>

I’m getting a sporadic error on a Coordinate Container where it will randomly show up and not show up with the following error:

![Snap65](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/6/96005f6ec15279d523cf315483e88bf587b4f509.png)

If I hover the little “i”, it says “style: null found, style-formatted object expected.” I have a few text fields with bindings on the style to outline it in red if the props.text is blank, but I’m not sure if that is what is causing this. Not seeing any other clues on this one.

Any ideas?

Thanks!

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [May 6, 2022, 5:26pm UTC](https://forum.inductiveautomation.com/t/error-style-null-found-style-formatted-object-expected/59307/2 "2022-05-06T17:26:13Z")

</div>

Sounds like you have a binding on the `props.style` and it is returning `null`.

Instead of binding directly on the `props.style` configure the style property that you are wanting effect and add the binding to that specific selector. This way the style property maintains it’s format.

---

<div class="post-metadata">

**Author:** ![MattEbert94](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@MattEbert94](https://forum.inductiveautomation.com/u/MattEbert94)\
**Post date:** [May 6, 2022, 6:05pm UTC](https://forum.inductiveautomation.com/t/error-style-null-found-style-formatted-object-expected/59307/3 "2022-05-06T18:05:28Z")

</div>

Ahh good idea! I just switched those over, so hopefully I don’t see the error anymore.

Thanks!
