mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add a comment explaining the null check in DefaultMediaItemConverter
Follow-up to 42b8fe2681
PiperOrigin-RevId: 301352557
This commit is contained in:
parent
e962a478b9
commit
13ffb9c684
1 changed files with 1 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ public final class DefaultMediaItemConverter implements MediaItemConverter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MediaItem toMediaItem(MediaQueueItem item) {
|
public MediaItem toMediaItem(MediaQueueItem item) {
|
||||||
|
// `item` came from `toMediaQueueItem()` so the custom JSON data must be set.
|
||||||
return getMediaItem(Assertions.checkNotNull(item.getMedia().getCustomData()));
|
return getMediaItem(Assertions.checkNotNull(item.getMedia().getCustomData()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue