Add null check. // FREEBIE

This commit is contained in:
Moxie Marlinspike 2014-04-03 14:01:15 -07:00
parent 7d5e66eb6e
commit 33ecc4d690

View File

@ -57,7 +57,7 @@ public class GroupReceiver {
handleGroupUpdate(masterSecret, message, group, record);
} else if (record == null && type == GroupContext.Type.UPDATE_VALUE) {
handleGroupCreate(masterSecret, message, group);
} else if (type == GroupContext.Type.QUIT_VALUE) {
} else if (record != null && type == GroupContext.Type.QUIT_VALUE) {
handleGroupLeave(masterSecret, message, group, record);
} else if (type == GroupContext.Type.UNKNOWN_VALUE) {
Log.w("GroupReceiver", "Received unknown type, ignoring...");