getView() in CountDownTimer's onTick return sometimes null
- by HexWrench
I had recently a crash report where I could see that in the CountDownTimer's onTick method
the getView() call returns null.
I use the onTick method to display the remaining time in a textView. The textView is inside a Fragment.
Since the CountDownTimer runs in the UI thread I have no idea why this had happened.
What could be the cause for this and what is a possible workaround for this problem?
Thanks!