Fix for NPE

This commit is contained in:
Moxie Marlinspike 2014-02-20 11:17:30 -08:00
parent a0cbbd2d21
commit 1d4d9663db

View File

@ -61,7 +61,7 @@ public class IncomingTextMessage implements Parcelable {
this.pseudoSubject = ""; this.pseudoSubject = "";
this.sentTimestampMillis = message.getTimestampMillis(); this.sentTimestampMillis = message.getTimestampMillis();
if (group.hasId()) { if (group != null && group.hasId()) {
this.groupId = GroupUtil.getEncodedId(group.getId().toByteArray()); this.groupId = GroupUtil.getEncodedId(group.getId().toByteArray());
} else { } else {
this.groupId = null; this.groupId = null;