java.lang.NullPointerException: No default RealmConfiguration was found. Call setDefaultConfiguration() first

GitHub | donnguyen | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    No default RealmConfiguration was found. Call setDefaultConfiguration() first

    GitHub | 6 months ago | donnguyen
    java.lang.NullPointerException: No default RealmConfiguration was found. Call setDefaultConfiguration() first
  2. 0

    Realm.getDefaultInstance() NullPointerException error occurs only in Android 6.0 and 6.0.1

    Stack Overflow | 4 months ago | ruitercomp
    java.lang.NullPointerException: No default RealmConfiguration was found. Call setDefaultConfiguration() first
  3. 0

    No default RealmConfiguration was found. Call setDefaultConfiguration() first

    GitHub | 1 year ago | McManusds
    java.lang.NullPointerException: No default RealmConfiguration was found. Call setDefaultConfiguration() first
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. bayukresno 2 times, last 8 months ago
  2. jk 14 times, last 9 months ago

Root Cause Analysis

  1. java.lang.NullPointerException

    No default RealmConfiguration was found. Call setDefaultConfiguration() first

    at io.realm.Realm.getDefaultInstance()
  2. io.realm
    Realm.getDefaultInstance
    1. io.realm.Realm.getDefaultInstance(Realm.java:158)
    1 frame
  3. removed
    MainActivity.onCreate
    1. removed.MainActivity.onCreate(MainActivity.java:73)
    1 frame
  4. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:6876)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)
    5. android.app.ActivityThread.access$1100(ActivityThread.java:222)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:158)
    9. android.app.ActivityThread.main(ActivityThread.java:7229)
    9 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Method.java)
    1 frame
  6. Android
    ZygoteInit$MethodAndArgsCaller.run
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    1 frame