Null Exceptions silently fail in data bindings.

So, I’m sure it’s necessary, as bindings can happen at strange times, but null exceptions fail silently and can cause lots of debugging headaches when dealing with Data Bindings.

For me, I had forgotten to set an initialize value, so I was attempting to reach object.value, but object was null. Normally this throws an error, a quick and easy fix, but when this happens during Data Binding, no error, so you’re left scratching your head wondering why the hell your function is finishing on the 2nd line of code.

4 hours later, you look up and see that you forgot to initialize the var.

0 comments ↓

There are no comments yet...Kick things off by filling out the form below.

You must log in to post a comment.