PlaylistWindow: Add missing NULL check

This commit is contained in:
Dario Casalinuovo 2016-01-07 02:08:16 +01:00
parent 5dc097412d
commit 8487f27d5b

View File

@ -559,6 +559,9 @@ void
PlaylistWindow::DurationListener::_HandleItemRemoved(int32 index)
{
bigtime_t* deleted = fKnown.RemoveItemAt(index);
if (deleted == NULL)
return;
fTotalDuration -= *deleted;
fParent._UpdateTotalDuration(fTotalDuration);