Brian
03/06/2019, 3:12 AMspinner
, but I was having similar issues with a stringBinding
in a `label`: NPE thrown when loading the view (or fragment, in my case) on the property, yet the property seemingly containing a valid value. This was with simple object properties and custom enum types. For me, the fix was to use them in nullable expressions (?.
), even though the final rendered item contained a non-null value. I'm not sure, but my guess is that properties are getting evaluated multiple times are this are rendered, and at the beginning those properties aren't bound/evaluated, but they become so later on in the rendering pipeline. Again, that's just my guess. I don't know squat about how TornadoFX works internally, so this could be all pulled from a dark anatomical hole on my part. 🤷♂️