Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. ActivityThread.handleLaunchActivity() has thrown a RuntimeException
    Android
    2783
    1361
    3

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.iam_j.diary/com.example.iam_j.diary.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List com.example.iam_j.diary.databaseHandler.getAllDiary()' on a null object reference
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)

Solution

Nwabunnia10 months ago

Create an empty public constructor in your code.

External results for this pattern (10)

  1. LightWayUpvia GitHub1 week ago
    Unable to start activity ComponentInfo{com.poupa.vinylmusicplayer/com.poupa.vinylmusicplayer.ui.activities.AlbumDetailActivity}: android.view.InflateException: Binary XML file line #14: Binary XML file line #14: Error inflating class com.kabouzeid.gramophone.views.StatusBarView
    Show stack trace
  2. fire-botvia GitHub1 week ago
    Unable to start activity ComponentInfo{com.jourhyang.disasmarm/com.jourhyang.disasmarm.FileSelectorActivity}: java.lang.NullPointerException: Attempt to get length of null array
    Show stack trace
  3. m1gavia GitHub1 week ago
    Unable to start activity ComponentInfo{com.miga.qr/com.google.zxing.client.android.CaptureActivity}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
    Show stack trace
  4. chaooooooovia GitHub1 week ago
    Unable to start activity ComponentInfo{chao.app.gamecenter/com.didi.virtualapk.core.D$1}: java.lang.IllegalArgumentException: Unable to find native library main using classloader: dalvik.system.DexClassLoader[DexPathList[[zip file "/storage/emulated/0/Android/data/chao.app.gamecenter/cache/nes2.apk"],nativeLibraryDirectories=[/data/user/0/chao.app.gamecenter/app_valibs, /system/lib, /vendor/lib]]]
    Show stack trace
  5. ravirajjakvia GitHub2 weeks ago
    Unable to start activity ComponentInfo{com.example/com.example.ui.PlaybackActivity}: com.bitmovin.player.b
    Show stack trace
  6. rafaeljevia GitHub2 weeks ago
    Unable to start activity ComponentInfo{org.flyve.mdm.agent/org.flyve.mdm.agent.ui.EditUserActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
    Show stack trace
  7. gsanskarvia GitHub2 weeks ago
    Unable to start activity ComponentInfo{com.developit.pebbles/com.developit.pebblestv.activity.HomeActivity}: java.lang.IllegalArgumentException: target position out of bounds: position=3, itemCount=0
    Show stack trace
  8. Jay-YaoJievia GitHub2 weeks ago
    Unable to instantiate activity ComponentInfo{com.alanjet.videorecordertest/com.alanjet.videorecordertest.PermissionGrantActivity}: java.lang.ClassNotFoundException: Didn't find class "com.alanjet.videorecordertest.PermissionGrantActivity" on path: DexPathList[[zip file "/data/app/com.alanjet.videorecordertest-1/base.apk", zip file "/data/app/com.alanjet.videorecordertest-1/split_lib_dependencies_apk.apk", zip file "/data/app/com.alanjet.videorecordertest-1/split_lib_slice_0_apk.apk", zip file "/data/app/com.alanjet.videorecordertest-1/split_lib_slice_1_apk.apk", zip file "/data/app/com.alanjet.videorecordertest-1/split_lib_slice_2_apk.apk", zip file "/data/app/com.alanjet.videorecordertest-1/split_lib_slice_3_apk.apk", zip file "/data/app/com.alanjet.videorecordertest-1/split_lib_slice_4_apk.apk", zip file "/data/app/com.alanjet.videorecordertest-1/split_lib_slice_5_apk.apk", zip file "/data/app/com.alanjet.videorecordertest-1/split_lib_slice_6_apk.apk", zip file "/data/app/com.alanjet.videorecordertest-1/split_lib_slice_7_apk.apk", zip file "/data/app/com.alanjet.videorecordertest-1/split_lib_slice_8_apk.apk", zip file "/data/app/com.alanjet.videorecordertest-1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.alanjet.videorecordertest-1/lib/arm64, /system/lib64, /vendor/lib64, /system/vendor/lib64]]
    Show stack trace
  9. Moelgaard85via GitHub2 weeks ago
    Unable to instantiate activity ComponentInfo{dk.proreact.nextofkindev/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Failed to create JavaScript extend wrapper for class 'com/tns/NativeScriptActivity'
    Show stack trace
  10. zksypvia GitHub2 weeks ago
    Unable to start activity ComponentInfo{xxx.PluginStubActivitySingleTask4}: android.view.InflateException: Binary XML file line #8: Binary XML file line #8: Error inflating class ImageView
    Show stack trace