From 29eaffc6d459dfe4deed80d59f7af064716cf157 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Wed, 11 Jul 2012 22:31:45 +0200 Subject: [PATCH] config: Don't accept null values as identifiers --- SparkleLib/SparkleConfig.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SparkleLib/SparkleConfig.cs b/SparkleLib/SparkleConfig.cs index ccc643d5..0365a8c5 100755 --- a/SparkleLib/SparkleConfig.cs +++ b/SparkleLib/SparkleConfig.cs @@ -277,6 +277,9 @@ namespace SparkleLib { public bool IdentifierExists (string identifier) { + if (identifier == null) + throw new ArgumentNullException (); + foreach (XmlNode node_folder in SelectNodes ("/sparkleshare/folder")) { XmlElement folder_id = node_folder ["identifier"];