java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.justforyou.bestnarutosongs/com.justforyou.bestnarutosongs.SongsListActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference

Stack Overflow | HARSHIL JAIN | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Getting a callback error

    Stack Overflow | 6 months ago | HARSHIL JAIN
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.justforyou.bestnarutosongs/com.justforyou.bestnarutosongs.SongsListActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference
  2. 0

    Insert Menu Bar

    Stack Overflow | 3 months ago | G.V.
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.apps.gv.myactivity3/com.apps.gv.myactivity3.MyActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference
  3. 0

    Calculator app crash when being run

    Stack Overflow | 10 months ago | Aulia Rifkyano
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.android.kalkulatron/com.example.android.kalkulatron.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Getting error when changing other activity's TextView

    Stack Overflow | 9 months ago | Adrià
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.android.mapamundi/com.example.android.mapamundi.PlayerNames}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference
  6. 0

    Created Android App but keeps getting stopped error

    Stack Overflow | 9 months ago | Tim Sharpe
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mylondonnews.knowbrockvilleuser.mybrockvillenews/com.mylondonnews.knowbrockvilleuser.mybrockvillenews.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference

      at android.support.v7.app.AppCompatDelegateImplBase.<init>()
    2. Android v7
      AppCompatActivity.findViewById
      1. android.support.v7.app.AppCompatDelegateImplBase.<init>(AppCompatDelegateImplBase.java:72)
      2. android.support.v7.app.AppCompatDelegateImplV7.<init>(AppCompatDelegateImplV7.java:146)
      3. android.support.v7.app.AppCompatDelegateImplV11.<init>(AppCompatDelegateImplV11.java:28)
      4. android.support.v7.app.AppCompatDelegateImplV14.<init>(AppCompatDelegateImplV14.java:41)
      5. android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:193)
      6. android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:173)
      7. android.support.v7.app.AppCompatActivity.getDelegate(AppCompatActivity.java:511)
      8. android.support.v7.app.AppCompatActivity.findViewById(AppCompatActivity.java:183)
      8 frames
    3. com.justforyou.bestnarutosongs
      SongsListActivity.<init>
      1. com.justforyou.bestnarutosongs.SongsListActivity.<init>(SongsListActivity.java:23)
      1 frame
    4. Java RT
      Class.newInstance
      1. java.lang.reflect.Constructor.newInstance(Native Method)
      2. java.lang.Class.newInstance(Class.java:1606)
      2 frames
    5. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Instrumentation.newActivity(Instrumentation.java:1071)
      2. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2434)
      2 frames