NullPointer at OnDestroy

喜欢而已 提交于 2019-12-12 00:42:42

问题


I'm having an issue that only Crashlytics shown me and my team, I can't reproduce it on my tests devices. It seens that the method onDestroy() is throwing a "NullPointerException".

 @Override
protected void onDestroy() {
    UsersOnRoom.removeAll();
    try {
        audioManager.removeAudioFiles();
    } catch (Exception e) {
        super.onDestroy();
    }
    super.onDestroy();
}

RoomBaseActivity extends another Activity, that has no implementation of onDestroy().

I have no ideia what's is causing it.

来源:https://stackoverflow.com/questions/36895171/nullpointer-at-ondestroy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!