From c3110d58169616ef24c40e1b72eb90d9d2173fb1 Mon Sep 17 00:00:00 2001
From: Dario Casalinuovo <b.vitruvio@gmail.com>
Date: Thu, 7 Jan 2016 02:08:16 +0100
Subject: [PATCH] PlayListWindow: Add missing NULL check
---
src/apps/mediaplayer/playlist/PlaylistWindow.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/apps/mediaplayer/playlist/PlaylistWindow.cpp b/src/apps/mediaplayer/playlist/PlaylistWindow.cpp
index fbea517..c99e971 100644
a
|
b
|
void
|
559 | 559 | PlaylistWindow::DurationListener::_HandleItemRemoved(int32 index) |
560 | 560 | { |
561 | 561 | bigtime_t* deleted = fKnown.RemoveItemAt(index); |
| 562 | if (deleted == NULL) |
| 563 | return; |
| 564 | |
562 | 565 | fTotalDuration -= *deleted; |
563 | 566 | fParent._UpdateTotalDuration(fTotalDuration); |
564 | 567 | |