Skip to content

Commit

Permalink
fixed NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
vivchar committed Jan 18, 2018
1 parent 8ae0b77 commit 658b8f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ org.gradle.jvmargs=-Xmx1536m
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
VERSION_NAME=2.4.0
VERSION_CODE=25
VERSION_NAME=2.4.1
VERSION_CODE=26
GROUP=com.github.vivchar

POM_DESCRIPTION=A single adapter with multiple view types for the whole project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ public void onBindViewHolder(final ViewHolder holder, final int position, @Nulla
}

public void registerRenderer(@NonNull final ViewRenderer renderer) {
renderer.setContext(mContext);
if (mContext != null) {
renderer.setContext(mContext);
}
final Type type = renderer.getType();

if (!mTypes.contains(type)) {
Expand Down

0 comments on commit 658b8f9

Please sign in to comment.