java.lang.NullPointerException

Stack Overflow | sayres kabir | 2 weeks ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd and rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    You have to provide valid identical number for each child items.
    via GitHub by h6ah4i
  2. 0

    ActionBar title not changing

    Stack Overflow | 4 years ago | user2343207
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    samebug tip
    You cannot update your adapter contents in the background. Prepare your data on the background thread and then pass it to the main thread to update the adapter and call notify.
  5. 0
    samebug tip
    Also, you should dispatch events as soon as they happen, ReciclerView already bundles all updates.
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.widget.Toast.<init>()
  2. Android Platform
    Toast.makeText
    1. android.widget.Toast.<init>(Toast.java:93)
    2. android.widget.Toast.makeText(Toast.java:241)
    2 frames
  3. com.example.sayres
    ProfileActivity$1.onPageSelected
    1. com.example.sayres.myapplication7.mvp.view.profile.ProfileFragment.onResumeFragment(ProfileFragment.java:117)
    2. com.example.sayres.myapplication7.mvp.view.profile.ProfileActivity$1.onPageSelected(ProfileActivity.java:56)
    2 frames
  4. Android Support v4
    ViewPager.onTouchEvent
    1. android.support.v4.view.ViewPager.dispatchOnPageSelected(ViewPager.java:1862)
    2. android.support.v4.view.ViewPager.scrollToItem(ViewPager.java:625)
    3. android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:609)
    4. android.support.v4.view.ViewPager.onTouchEvent(ViewPager.java:2176)
    4 frames
  5. Android Platform
    ViewGroup.dispatchTouchEvent
    1. android.view.View.dispatchTouchEvent(View.java:7706)
    2. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2210)
    3. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1945)
    4. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
    5. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
    6. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
    7. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
    8. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
    9. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
    10. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
    11. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
    11 frames
  6. Android
    PhoneWindow.superDispatchTouchEvent
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2068)
    2. com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1515)
    2 frames
  7. Android Platform
    Activity.dispatchTouchEvent
    1. android.app.Activity.dispatchTouchEvent(Activity.java:2458)
    1 frame
  8. Android
    PhoneWindow$DecorView.dispatchTouchEvent
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2016)
    1 frame
  9. Android Platform
    ActivityThread.main
    1. android.view.View.dispatchPointerEvent(View.java:7886)
    2. android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:3947)
    3. android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3826)
    4. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3392)
    5. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3442)
    6. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3411)
    7. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3518)
    8. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3419)
    9. android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3575)
    10. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3392)
    11. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3442)
    12. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3411)
    13. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3419)
    14. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3392)
    15. android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5532)
    16. android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5512)
    17. android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5483)
    18. android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5612)
    19. android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
    20. android.os.MessageQueue.nativePollOnce(Native Method)
    21. android.os.MessageQueue.next(MessageQueue.java:138)
    22. android.os.Looper.loop(Looper.java:123)
    23. android.app.ActivityThread.main(ActivityThread.java:5001)
    23 frames
  10. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  11. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
    2 frames
  12. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame