Skip to content

Commit 30dd2ba

Browse files
authored
add optional (#12419)
1 parent 57926ca commit 30dd2ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FirebaseSessions/Tests/TestApp/Shared/MockSubscriberSDK.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protocol MockSubscriberSDKProtocol {
4444

4545
let sessions = ComponentType<SessionsProvider>.instance(for: SessionsProvider.self,
4646
in: app.container)
47-
sessions.register(subscriber: self)
47+
sessions?.register(subscriber: self)
4848
}
4949

5050
// MARK: - Library Conformance

0 commit comments

Comments
 (0)