Commit 9fb294d
Fix NPE in DeviceMediaLoader when device media title is null (#23131)
MediaColumns.TITLE can be null for some device media entries, which
crashed the media loader when constructing DeviceMediaItem. Make the
title nullable and show "Unknown" when representing an item without a
name.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 63ecadd commit 9fb294d
2 files changed
Lines changed: 2 additions & 2 deletions
File tree
- WordPress/src/main/java/org/wordpress/android/ui/mediapicker
- loader
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
0 commit comments