[longomatch] Fix exception when no playlist is created
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix exception when no playlist is created
- Date: Tue, 28 Oct 2014 09:54:47 +0000 (UTC)
commit 810ac8156f5a0cd8eaf4869f46dd91070eedacf0
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Oct 24 19:36:03 2014 +0200
Fix exception when no playlist is created
LongoMatch.Services/Services/PlaylistManager.cs | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Services/Services/PlaylistManager.cs b/LongoMatch.Services/Services/PlaylistManager.cs
index 195ae32..352b9e9 100644
--- a/LongoMatch.Services/Services/PlaylistManager.cs
+++ b/LongoMatch.Services/Services/PlaylistManager.cs
@@ -181,6 +181,9 @@ namespace LongoMatch.Services
{
if (playlist == null) {
playlist = HandleNewPlaylist (openedProject);
+ if (playlist == null) {
+ return;
+ }
}
playlist.Elements.AddRange (element);
Config.EventsBroker.EmitPlaylistsChanged (this);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]