java.lang.NullPointerException

Stack Overflow | Aamir | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Can't parse xml url in android

    Stack Overflow | 8 months ago | Aamir
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.example.rssreader.MyAdapter.getItemCount()
    2. com.example.rssreader
      MyAdapter.getItemCount
      1. com.example.rssreader.MyAdapter.getItemCount(MyAdapter.java:53)
      1 frame
    3. Android v7
      RecyclerView.onMeasure
      1. android.support.v7.widget.RecyclerView.onMeasure(RecyclerView.java:2556)
      1 frame
    4. Android Platform
      ViewGroup.measureChildWithMargins
      1. android.view.View.measure(View.java:12773)
      2. android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:594)
      3. android.widget.RelativeLayout.onMeasure(RelativeLayout.java:376)
      4. android.view.View.measure(View.java:12773)
      5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4788)
      5 frames
    5. android.support.design
      CoordinatorLayout.onMeasureChild
      1. android.support.design.widget.CoordinatorLayout.onMeasureChild(CoordinatorLayout.java:610)
      1 frame