From f815dfb2fdfa6e6374a4b421261dc5d6529c6788 Mon Sep 17 00:00:00 2001 From: lukeIam Date: Wed, 31 Dec 2014 13:24:08 +0100 Subject: [PATCH] Fix: saving a new created playlist could cause an exception --- Vocaluxe/Lib/Playlist/CPlaylistFile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vocaluxe/Lib/Playlist/CPlaylistFile.cs b/Vocaluxe/Lib/Playlist/CPlaylistFile.cs index 77fc2b06..fdddf0dc 100644 --- a/Vocaluxe/Lib/Playlist/CPlaylistFile.cs +++ b/Vocaluxe/Lib/Playlist/CPlaylistFile.cs @@ -43,7 +43,7 @@ namespace Vocaluxe.Lib.Playlist public void Save() { - if (File == "") + if (string.IsNullOrEmpty(File)) { string filename = string.Empty; // ReSharper disable LoopCanBeConvertedToQuery