I have Activity A that starts another Activity B.
When I am in Activity B I should be able to close both A and B.
For this purpose I used the approach at this link https://stackoverflow.com/a/11509279/1815311, but sometimes I get a NullPointerException
when I do aActivity.handleToClose.finish();
Please what possibly can be wrong here???