File tree Expand file tree Collapse file tree
messaging/src/android/cpp Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ void MessageReader::ConsumeTokenReceived(
231231void MessageReader::ConsumeRegistrationReceived (
232232 const SerializedRegistrationReceived* serialized_registration_received)
233233 const {
234+ if (!serialized_registration_received) return ;
234235 const char * installation_id =
235236 SafeFlatbufferString (serialized_registration_received->installation_id ());
236237 if (registration_callback_) {
@@ -243,6 +244,7 @@ void MessageReader::ConsumeRegistrationReceived(
243244void MessageReader::ConsumeUnregistrationReceived (
244245 const SerializedUnregistrationReceived* serialized_unregistration_received)
245246 const {
247+ if (!serialized_unregistration_received) return ;
246248 const char * installation_id = SafeFlatbufferString (
247249 serialized_unregistration_received->installation_id ());
248250 if (unregistration_callback_) {
You can’t perform that action at this time.
0 commit comments