Skip to content

Crash on android #38

@yunusemreozturk

Description

@yunusemreozturk

The following crash popped up when notification click from root beer:

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.PackageManager android.content.Context.getPackageManager()' on a null object reference
       at com.scottyab.rootbeer.RootBeer.isAnyPackageFromListInstalled(RootBeer.java:242)
       at com.scottyab.rootbeer.RootBeer.detectRootManagementApps(RootBeer.java:103)
       at com.scottyab.rootbeer.RootBeer.detectRootManagementApps(RootBeer.java:87)
       at com.scottyab.rootbeer.RootBeer.isRooted(RootBeer.java:44)
       at com.anish.trust_fall.rooted.RootedCheck.rootBeerCheck(RootedCheck.kt:36)
       at com.anish.trust_fall.rooted.RootedCheck.isJailBroken(RootedCheck.kt:23)
       at com.w3conext.jailbreak_root_detection.JailbreakRootDetectionPlugin$processJailBroken$1.invokeSuspend(JailbreakRootDetectionPlugin.kt:118)
       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
       at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions