Android Crash Tip - When in doubt, look for function calls around null values

Just sharing what we found, which is that you should be careful with null values when it comes to android.

Our specific case was using the clearTimeout() function on a declared var that wasn’t assigned a timeout yet. It worked fine in preview and on iOS but as soon as we tried on our LCD android device, it just threw a “fatal signal” and the app crashed, this was frustrating as the crash could have been caused by anything, so hopefully we’ve saved you a few hairs and hours by sharing this.

Happy coding fellow fusers!