Skip to content

Commit e640d9c

Browse files
authored
Add assertion when in app message is in invalid state (#5753)
* Add assertion when in app message is in invalid state * Update FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayExecutor.m
1 parent 641d853 commit e640d9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayExecutor.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ - (void)checkAndDisplayNextContextualMessageForAnalyticsEvent:(NSString *)eventN
567567
case FIRIAMRenderAsCardView:
568568
// Image data should never nil for a valid card message.
569569
if (imageData == nil) {
570+
NSAssert(NO, @"Image data should never nil for a valid card message.");
570571
return nil;
571572
}
572573
return [self cardDisplayMessageWithMessageDefinition:definition

0 commit comments

Comments
 (0)