Commit 7658eee
committed
fix: update CustomBranchApp to use getInstance(Context) method
- Replace Branch.getInstance() with Branch.getInstance(this) in CustomBranchApp
- Provide proper context for Branch SDK initialization
- Store branch instance in local variable to avoid multiple calls
- Fixes NullPointerException crash during application startup
- Ensures proper Branch SDK initialization in TestBed application1 parent 48b1516 commit 7658eee
File tree
1 file changed
+2
-2
lines changed- Branch-SDK-TestBed/src/main/java/io/branch/branchandroidtestbed
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments