aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWally Yau <wyau@google.com>2021-08-30 17:26:59 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-08-30 17:26:59 +0000
commit322df1dffcd046cf18377824e6daeb96e01bfbcd (patch)
tree33b92996f87d59b8151f0d18e31f792c057f84b0
parent3492064c7641a805f84dfdf857dc4969fefdef44 (diff)
parent367abf8295def0e373b0493ef7b99b2396f889e5 (diff)
downloadTV-322df1dffcd046cf18377824e6daeb96e01bfbcd.tar.gz
Handle null value for the recording_data_uri field am: 20322236e6 am: d54318f541 am: 32a54af147 am: a6555ca8e6 am: 367abf8295
Original change: https://android-review.googlesource.com/c/platform/packages/apps/TV/+/1811736 Change-Id: I87107804adb7e9b8a851f7f92f96705a2858d13f
-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++))