java.lang.NullPointerException

Stack Overflow | Mohamad Armoon | 10 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. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    Cannot launch any activity except the launcher activity

    Stack Overflow | 2 years ago | user3195434
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp.client/com.myapp.client.LoginActivity}: java.lang.NullPointerException
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

    No message provided

    at android.content.ContextWrapper.getApplicationInfo()
  2. Android Platform
    ProgressDialog.<init>
    1. android.content.ContextWrapper.getApplicationInfo(ContextWrapper.java:152)
    2. android.view.ContextThemeWrapper.getTheme(ContextThemeWrapper.java:103)
    3. android.app.AlertDialog.resolveDialogTheme(AlertDialog.java:143)
    4. android.app.AlertDialog.<init>(AlertDialog.java:98)
    5. android.app.ProgressDialog.<init>(ProgressDialog.java:77)
    5 frames
  3. com.example.mohamad
    MainActivity$1.onPageScrollStateChanged
    1. com.example.mohamad.travelagency.fragment_two.GetServetData_L1(fragment_two.java:458)
    2. com.example.mohamad.travelagency.MainActivity$1.onPageScrollStateChanged(MainActivity.java:124)
    2 frames
  4. Android Support v4
    ViewPager$3.run
    1. android.support.v4.view.ViewPager.dispatchOnScrollStateChanged(ViewPager.java:1811)
    2. android.support.v4.view.ViewPager.setScrollState(ViewPager.java:404)
    3. android.support.v4.view.ViewPager.access$000(ViewPager.java:91)
    4. android.support.v4.view.ViewPager$3.run(ViewPager.java:250)
    4 frames
  5. Android Platform
    ActivityThread.main
    1. android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
    2. android.view.Choreographer.doCallbacks(Choreographer.java:574)
    3. android.view.Choreographer.doFrame(Choreographer.java:543)
    4. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
    5. android.os.Handler.handleCallback(Handler.java:733)
    6. android.os.Handler.dispatchMessage(Handler.java:95)
    7. android.os.Looper.loop(Looper.java:136)
    8. android.app.ActivityThread.main(ActivityThread.java:5271)
    8 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:851)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:667)
    2 frames
  8. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame