Skip to content

Commit a5c1f3d

Browse files
Merge pull request #111 from appunite/fix-null-pointer-in-adapter
Fixed NullPointerException in adapter
2 parents d24cb4d + 228ca5b commit a5c1f3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

example/src/main/java/com/ffmpegtest/adapter/ItemsAdapter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public static ViewHolder fromConvertView(@Nonnull View convertView) {
3333
public ViewHolder(@Nonnull LayoutInflater inflater, @Nonnull ViewGroup parent) {
3434
view = inflater.inflate(R.layout.main_list_item, parent, false);
3535
textView = (TextView) view.findViewById(R.id.main_list_item_text);
36+
view.setTag(this);
3637
}
3738

3839
@Nonnull

0 commit comments

Comments
 (0)