java.lang.RuntimeException

Unable to start activity ComponentInfo{com.github.pires.obd.reader/com.auth0.lock.LockActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'com.auth0.core.Connection com.auth0.lock.Configuration.getDefaultDatabaseConnection()' on a null object reference

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web45756

  • Unable to start activity ComponentInfo{com.github.pires.obd.reader/com.auth0.lock.LockActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'com.auth0.core.Connection com.auth0.lock.Configuration.getDefaultDatabaseConnection()' on a null object reference
  • Unable to start activity java.lang.NullPointerException: Attempt to invoke virtual method 'com.auth0.core.Connection com.auth0.lock.Configuration.getDefaultDatabaseConnection()' on a null object reference
  • Unable to start activity ComponentInfo{org.nativescript.demo/com.auth0.lock.LockActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'com.squareup.otto.Bus com.auth0.lock.Lock.getBus()' on a null object reference
  • Stack trace

    • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.github.pires.obd.reader/com.auth0.lock.LockActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'com.auth0.core.Connection com.auth0.lock.Configuration.getDefaultDatabaseConnection()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3124) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3233) at android.app.ActivityThread.access$1000(ActivityThread.java:197) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:6856) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'com.auth0.core.Connection com.auth0.lock.Configuration.getDefaultDatabaseConnection()' on a null object reference at com.auth0.lock.fragment.DatabaseLoginFragment.onCreate(DatabaseLoginFragment.java:102) at com.auth0.lock.fragment.SocialDBFragment.onCreate(SocialDBFragment.java:42) at android.support.v4.app.Fragment.performCreate(Fragment.java:1939) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1029) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1230) at android.support.v4.app.FragmentManagerImpl.dispatchCreate(FragmentManager.java:2037) at android.support.v4.app.FragmentController.dispatchCreate(FragmentController.java:154) at android.support.v4.app.FragmentActivity.onCreate(FragmentActivity.java:289) at com.auth0.lock.LockActivity.onCreate(LockActivity.java:89) at android.app.Activity.performCreate(Activity.java:6550) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1120) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3077) ... 10 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 9 months ago
    Once, 1 year ago