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.
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: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.