From 33ecc4d690aed3c9663e49a5b7860390cebb9d8a Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Thu, 3 Apr 2014 14:01:15 -0700 Subject: [PATCH] Add null check. // FREEBIE --- src/org/thoughtcrime/securesms/service/GroupReceiver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/service/GroupReceiver.java b/src/org/thoughtcrime/securesms/service/GroupReceiver.java index 0cc6cfc2ea..cf5b703162 100644 --- a/src/org/thoughtcrime/securesms/service/GroupReceiver.java +++ b/src/org/thoughtcrime/securesms/service/GroupReceiver.java @@ -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...");