diff options
author | Wally Yau <wyau@google.com> | 2021-08-27 08:06:35 -0700 |
---|---|---|
committer | Wally Yau <wyau@google.com> | 2021-08-27 08:06:35 -0700 |
commit | 20322236e664b6ff86d334ca538038175fd972a3 (patch) | |
tree | 14d1f8358f8d58e5c963c06b12569afdd503c0d9 | |
parent | 4762f2737481c309961908d9aac9eded7dbe085c (diff) | |
download | TV-android-s-beta-5.tar.gz |
Handle null value for the recording_data_uri fieldandroid-s-beta-5android-s-beta-5
The URI can be null if the program is available through the network from a
backend.
Bug: 158265628
Test: Manual
Change-Id: I463dc5ada485b0650a04ea784e25f790fa66ee70
-rw-r--r-- | src/com/android/tv/dvr/data/RecordedProgram.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/tv/dvr/data/RecordedProgram.java b/src/com/android/tv/dvr/data/RecordedProgram.java index 61430551..230ec62d 100644 --- a/src/com/android/tv/dvr/data/RecordedProgram.java +++ b/src/com/android/tv/dvr/data/RecordedProgram.java @@ -113,7 +113,7 @@ public abstract class RecordedProgram extends BaseProgramImpl { .setPosterArtUri(StringUtils.nullToEmpty(cursor.getString(index++))) .setThumbnailUri(StringUtils.nullToEmpty(cursor.getString(index++))) .setSearchable(cursor.getInt(index++) == 1) - .setDataUri(cursor.getString(index++)) + .setDataUri(StringUtils.nullToEmpty(cursor.getString(index++))) .setDataBytes(cursor.getLong(index++)) .setDurationMillis(cursor.getLong(index++)) .setExpireTimeUtcMillis(cursor.getLong(index++)) |