PlaylistWindow: Add missing NULL check
This commit is contained in:
@@ -559,6 +559,9 @@ void
|
|||||||
PlaylistWindow::DurationListener::_HandleItemRemoved(int32 index)
|
PlaylistWindow::DurationListener::_HandleItemRemoved(int32 index)
|
||||||
{
|
{
|
||||||
bigtime_t* deleted = fKnown.RemoveItemAt(index);
|
bigtime_t* deleted = fKnown.RemoveItemAt(index);
|
||||||
|
if (deleted == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
fTotalDuration -= *deleted;
|
fTotalDuration -= *deleted;
|
||||||
fParent._UpdateTotalDuration(fTotalDuration);
|
fParent._UpdateTotalDuration(fTotalDuration);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user