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

Stack Overflow | marco | 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

    New to Android App / Java development, working through some abnormalities

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

    Android Studio - Using methods from outside classes with views

    Stack Overflow | 5 months ago | Jay Castell
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference
  3. 0

    Android Programming

    Stack Overflow | 2 months ago | keshav mainali
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.kesahv.toastme/com.kesahv.toastme.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

    Calculator app crash when being run

    Stack Overflow | 11 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
  6. 0

    Getting error when changing other activity's TextView

    Stack Overflow | 10 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

    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:116)
      2. android.support.v7.app.AppCompatDelegateImplV9.<init>(AppCompatDelegateImplV9.java:147)
      3. android.support.v7.app.AppCompatDelegateImplV11.<init>(AppCompatDelegateImplV11.java:27)
      4. android.support.v7.app.AppCompatDelegateImplV14.<init>(AppCompatDelegateImplV14.java:50)
      5. android.support.v7.app.AppCompatDelegateImplV23.<init>(AppCompatDelegateImplV23.java:29)
      6. android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:199)
      7. android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:181)
      8. android.support.v7.app.AppCompatActivity.getDelegate(AppCompatActivity.java:521)
      9. android.support.v7.app.AppCompatActivity.findViewById(AppCompatActivity.java:190)
      9 frames
    3. com.rcbot
      MainActivity.<init>
      1. com.rcbot.MainActivity.<init>(MainActivity.java:24)
      1 frame
    4. Java RT
      Class.newInstance
      1. java.lang.Class.newInstance(Native Method)
      1 frame
    5. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Instrumentation.newActivity(Instrumentation.java:1095)
      2. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3083)
      2 frames