aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWally Yau <wyau@google.com>2021-08-30 17:01:30 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-08-30 17:01:30 +0000
commita6555ca8e6d893152441119345652b4332459f2d (patch)
treea63013eb2d6d7a5c2e416f9609f18d0aa0d0cedc
parent4532eb3eb5a05898954518aec9eb378f295834fc (diff)
parent32a54af14756adb9e96ed13a129b22dad8241799 (diff)
downloadTV-a6555ca8e6d893152441119345652b4332459f2d.tar.gz
Handle null value for the recording_data_uri field am: 20322236e6 am: d54318f541 am: 32a54af147
Original change: https://android-review.googlesource.com/c/platform/packages/apps/TV/+/1811736 Change-Id: I6ef1f07d3ae13bfd5c8d35031975a1ca6c4a9727
-rw-r--r--src/com/android/tv/dvr/data/RecordedProgram.java2
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++))