@Override public void onReceive(Context context, Intent intent) { try { Throwable error = null; if (null != intent && null != intent.getExtras() && intent.getExtras().containsKey(Conversation.callbackExceptionKey)) { error = (Throwable) intent.getExtras().getSerializable(Conversation.callbackExceptionKey); } execute(intent, error); LocalBroadcastManager.getInstance(AVOSCloud.applicationContext) .unregisterReceiver(this); } catch (Exception e) { if (callback != null) { callback.internalDone(null, new AVException(e)); } } }