fixed NPE when executing rename callback in muc

This commit is contained in:
Daniel Gultsch 2015-09-28 15:36:55 +02:00
parent 8881b71079
commit 5fb77a9739

View File

@ -308,7 +308,9 @@ public class MucOptions {
this.error = ERROR_NO_ERROR;
self = user;
if (mNickChangingInProgress) {
onRenameListener.onSuccess();
if (onRenameListener != null) {
onRenameListener.onSuccess();
}
mNickChangingInProgress = false;
} else if (this.onJoinListener != null) {
this.onJoinListener.onSuccess();