You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the sample.stop(timer) will be placed in this block we stop to call this method for any exception as there aren't any case when timer is null in finally block:
Of course we can leave if (timer == null) to work with Error and Throwable.
But here should be only one call of thestop: we should remove it from main block try-catch.
"sample.stop(timer)" in the finally code block should be placed in "if(time == null)"
The text was updated successfully, but these errors were encountered: