Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setEndlessScrollListener crashes when logging is enabled #409

Closed
wankey opened this issue Jul 12, 2017 · 1 comment
Closed

setEndlessScrollListener crashes when logging is enabled #409

wankey opened this issue Jul 12, 2017 · 1 comment

Comments

@wankey
Copy link

wankey commented Jul 12, 2017

public FlexibleAdapter setEndlessScrollListener(@Nullable FlexibleAdapter.EndlessScrollListener endlessScrollListener, @NonNull T progressItem) {
    if (DEBUG) {
        Log.i(TAG, "Set endlessScrollListener=" + Utils.getClassName(endlessScrollListener));
    }

    this.mEndlessScrollListener = endlessScrollListener;
    return this.setEndlessProgressItem(progressItem);
}

When endlessScrollListener is null, Utils.getClassName will crash

@davideas davideas added the bug label Jul 12, 2017
@davideas
Copy link
Owner

Thank you @wankey!

@davideas davideas changed the title seteEndlessScrollListener crash when log is opened setEndlessScrollListener crashes when logging is enabled Jul 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants