diff options
author | Wally Yau <wyau@google.com> | 2021-08-30 16:37:41 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-08-30 16:37:41 +0000 |
commit | d54318f5411ffb789b2adc23a4bb8aa1a4026725 (patch) | |
tree | a63013eb2d6d7a5c2e416f9609f18d0aa0d0cedc | |
parent | 2ec8408e77758597061356e1644b11bb50608515 (diff) | |
parent | 20322236e664b6ff86d334ca538038175fd972a3 (diff) | |
download | TV-temp_sam_202323961.tar.gz |
Handle null value for the recording_data_uri field am: 20322236e6temp_sam_202323961
Original change: https://android-review.googlesource.com/c/platform/packages/apps/TV/+/1811736
Change-Id: Ia566dc434543755b829d1a80dd5740d0648b3dd3
-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++)) |