Skip to content

Crash in -[MMRecordResponse recordsFromObjectGraph] #91

@jonbrooks

Description

@jonbrooks

We've encountered a crash in MMRecord in our app that we have yet to reproduce in house. The crash occurred in [MMRecordResponse recordsFromObjectGraph] attempting to add a nil record to the records array in this line:

for (MMRecordProtoRecord *protoRecord in self.objectGraph) {
    [records addObject:protoRecord.record];
}

After some careful analysis of the code path in question, I believe we could only have gotten here if the top level protoRecord wasn't added to a responseGroup. This seems impossible, yet our app got there somehow. I wonder if there should be some error handling in MMRecordResponse to prevent adding a protoRecord to the objectGraph if it did not have a responseGroup.

I will continue to try to reproduce. I would love to hear any thoughs on where things could be going wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions