Skip to content

Commit

Permalink
Add null check. // FREEBIE
Browse files Browse the repository at this point in the history
  • Loading branch information
moxie0 committed Apr 3, 2014
1 parent 7d5e66e commit 33ecc4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/thoughtcrime/securesms/service/GroupReceiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void process(MasterSecret masterSecret,
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...");
Expand Down

0 comments on commit 33ecc4d

Please sign in to comment.