Closed anthony-cannon closed 7 years ago
Im using this within a fragment and when i set the adapter to my custom BaseAdapter is throws the error:
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getVisibility()' on a null object reference
The same thing happens when i use init instead: mView.init(getContext(), mAdapter);
mView.init(getContext(), mAdapter);
Im using this within a fragment and when i set the adapter to my custom BaseAdapter is throws the error:
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getVisibility()' on a null object reference
The same thing happens when i use init instead:
mView.init(getContext(), mAdapter);