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

Stack Overflow | ZERO | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Trying to get songlist in a fragment gives nullpointerexception

    Stack Overflow | 5 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