java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.nom.sudokuhint/com.nom.sudokuhint.MainActivity}: java.lang.NullPointerException

Stack Overflow | Pradeep Bhat | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Android App Thread Exception null pointer

    Stack Overflow | 3 years ago | Pradeep Bhat
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.nom.sudokuhint/com.nom.sudokuhint.MainActivity}: java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.nom.sudokuhint.Sudoku.stringify()
    2. com.nom.sudokuhint
      MainActivity.<init>
      1. com.nom.sudokuhint.Sudoku.stringify(Sudoku.java:44)
      2. com.nom.sudokuhint.Sudoku.<init>(Sudoku.java:21)
      3. com.nom.sudokuhint.MainActivity.<init>(MainActivity.java:17)
      3 frames
    3. Java RT
      Class.newInstance
      1. java.lang.Class.newInstanceImpl(Native Method)
      2. java.lang.Class.newInstance(Class.java:1208)
      2 frames
    4. Android Platform
      ActivityThread.main
      1. android.app.Instrumentation.newActivity(Instrumentation.java:1061)
      2. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
      3. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
      4. android.app.ActivityThread.access$800(ActivityThread.java:135)
      5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
      6. android.os.Handler.dispatchMessage(Handler.java:102)
      7. android.os.Looper.loop(Looper.java:136)
      8. android.app.ActivityThread.main(ActivityThread.java:5017)
      8 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame