Skip to content

Commit 0890d02

Browse files
committed
npe fix
1 parent 1849142 commit 0890d02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

leanbackassistant/src/main/java/com/liskovsoft/leanbackassistant/channels/ChannelsProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ private static void addClipsToChannel(Context context, long channelId, List<Clip
294294
return;
295295
}
296296

297-
if (clips.size() == 0) {
298-
Log.d(TAG, "Cant add clips: clips.size() == 0");
297+
if (clips == null || clips.isEmpty()) {
298+
Log.d(TAG, "Cant add clips: clips null or empty");
299299
return;
300300
}
301301

0 commit comments

Comments
 (0)