but its when i press back button
# android
c
but its when i press back button
a
You didn’t post a log and I don’t know where that block of code is. If you’re calling it during
onBackPressed
that could be the problem. Basically, you should get a line number, and it’s likely because you are asserting that something is nonnull (!!).
c
ok check this