aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWally Yau <wyau@google.com>2021-08-30 16:47:50 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-08-30 16:47:50 +0000
commit32a54af14756adb9e96ed13a129b22dad8241799 (patch)
treea63013eb2d6d7a5c2e416f9609f18d0aa0d0cedc
parent6bb4c1b8ecb969540e7c26f806938a5d1913ae4d (diff)
parentd54318f5411ffb789b2adc23a4bb8aa1a4026725 (diff)
downloadTV-32a54af14756adb9e96ed13a129b22dad8241799.tar.gz
Handle null value for the recording_data_uri field am: 20322236e6 am: d54318f541
Original change: https://android-review.googlesource.com/c/platform/packages/apps/TV/+/1811736 Change-Id: Ia397449c77fb5b8dd5d7b6287d6c2c5bfc6222de
-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++))