Protects against possible NULL return from dynamic_cast
CID 10807
This commit is contained in:
@@ -714,7 +714,7 @@ Playlist::_MIMEString(const entry_ref* ref)
|
||||
Playlist::_BindExtraMedia(PlaylistItem* item)
|
||||
{
|
||||
FilePlaylistItem* fileItem = dynamic_cast<FilePlaylistItem*>(item);
|
||||
if (!item)
|
||||
if (!fileItem)
|
||||
return;
|
||||
|
||||
// If the media file is foo.mp3, _BindExtraMedia() searches foo.avi.
|
||||
|
||||
Reference in New Issue
Block a user