rootbeer
rootbeer copied to clipboard
Getting NullPointerException when using isRooted
The following crash popped up today from root beer:
Fatal Exception: java.lang.NullPointerException:
at java.io.Reader.<init>(Reader.java:78)
at java.io.InputStreamReader.<init>(InputStreamReader.java:72)
at java.util.Scanner.<init>(Scanner.java:572)
at com.scottyab.rootbeer.RootBeer.propsReader(RootBeer.java:205)
at com.scottyab.rootbeer.RootBeer.checkForDangerousProps(RootBeer.java:271)
at com.scottyab.rootbeer.RootBeer.isRooted(RootBeer.java:44)
at com.awantunai.app.home.HomeActivity$checkIfRooted$1$1.invokeSuspend(HomeActivity.kt:816)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)