Skip to content Skip to sidebar Skip to footer

Null Pointer Exception On Layout Inflator

I am trying to add listview to my layout from a class which extends fragments. The problem is, when the data is coming, the layout is showing null pointer exception. Here is the co

Solution 1:

You have not initialized your inflater member variable you're using in getView().

Use e.g. inflater = LayoutInflater.from(context) to initialize it.

Post a Comment for "Null Pointer Exception On Layout Inflator"