Android - JSON array from asset and NullPointerException Android - JSON array from asset and NullPointerException json json

Android - JSON array from asset and NullPointerException


You didn't initialize this ArrayList in your Parent class.

private ArrayList<ChildData> child;

In your Parent constructor, you should add:

child = new ArrayList<ChildData>();

I am guessing that is where your NullPointerException is coming from.