Skip to content

Commit 1beedc8

Browse files
Update Branch-SDK/src/main/java/io/branch/referral/BranchConfigurationController.kt
Co-authored-by: matter-code-review[bot] <150888575+matter-code-review[bot]@users.noreply.github.com>
1 parent c121c32 commit 1beedc8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Branch-SDK/src/main/java/io/branch/referral/BranchConfigurationController.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ class BranchConfigurationController {
1717
* @see Branch.expectDelayedSessionInitialization
1818
*/
1919
fun setDelayedSessionInitUsed(used: Boolean) {
20-
Branch.getInstance().prefHelper_.delayedSessionInitUsed = used
20+
Branch.getInstance()?.let { branch ->
21+
branch.prefHelper_.delayedSessionInitUsed = used
22+
}
2123
}
2224

2325
/**

0 commit comments

Comments
 (0)