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"];