Diolor / Swipecards

A Tinder-like Android library to create the swipe cards effect. You can swipe left or right to like or dislike the content.
Apache License 2.0
2.34k stars 583 forks source link

NullPointerException #190

Closed anthony-cannon closed 7 years ago

anthony-cannon commented 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);