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

com.tr | 4 months ago
  1. 0

    MyApplication Kapandı Hatası | Geleceği Yazanlar

    com.tr | 4 months ago
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.genc.myapplication2/com.example.genc.myapplication2.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference
  2. 0

    Nullpointer when accessing array in xml file

    Stack Overflow | 1 year ago | Johannes
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.johannes.watch_this/com.example.johannes.watch_this.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
  3. 0

    Android activity error 5

    Stack Overflow | 1 year ago | Yulian
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.colpsic.domain.colpsic_app/com.colpsic.domain.colpsic_app.PrincipalActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.Window.findViewById(int)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Null Object Reference: Application Crashing

    Stack Overflow | 1 year ago | Kendrick
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.fluke.kgwee.test/com.fluke.kgwee.test.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.Window.findViewById(int)' on a null object reference
  6. 0

    Null exception flag

    Stack Overflow | 1 year ago | adambroni
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.savag.babcockapplication/com.example.savag.babcockapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.Window.findViewById(int)' on a null object reference

  1. Riyaz 2 times, last 4 days ago
  2. malhobayyeb 9 times, last 2 weeks ago
  3. bluebunnty 11 times, last 2 weeks ago
  4. Aria Pahlavan 1045 times, last 1 week ago
  5. Alexandru Popa 12 times, last 3 weeks ago
39 more registered users
7 unregistered visitors
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.RuntimeException

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

    at android.app.ActivityThread.performLaunchActivity()
  2. Android Platform
    ActivityThread.handleLaunchActivity
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2327)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
    2 frames