java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.util.ArrayList.add(java.lang.Object)' on a null object reference

Stack Overflow | ZERO | 6 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

    Trying to get songlist in a fragment gives nullpointerexception

    Stack Overflow | 6 months ago | ZERO
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.util.ArrayList.add(java.lang.Object)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'boolean java.util.ArrayList.add(java.lang.Object)' on a null object reference

      at com.musi.musi2.Tracks.getSongList()
    2. com.musi.musi2
      Tracks.getSongList
      1. com.musi.musi2.Tracks.getSongList(Tracks.java:60)
      1 frame