Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87ce5eed authored by Kihong Seong's avatar Kihong Seong Committed by Gerrit Code Review
Browse files

Merge "Add null check to avoid NPE when text message has null datetime"

parents 6af705d7 8edcdd37
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -823,6 +823,11 @@ class MceStateMachine extends StateMachine {
                                + " [Connected]: fetch message content, handle=" + msg.getHandle());
                    }
                    // A message listing coming from the server should always have up to date data
                    if (msg.getDateTime() == null) {
                        Log.w(TAG, "message with handle " + msg.getHandle()
                                + " has a null datetime, ignoring");
                        continue;
                    }
                    mMessages.put(msg.getHandle(), new MessageMetadata(msg.getHandle(),
                            msg.getDateTime().getTime(), msg.isRead(), MESSAGE_SEEN));
                    getMessage(msg.getHandle());