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
1 changed files with 3 additions and 1 deletions

View File

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