Problems with missing options in earlier config.

This commit is contained in:
Lars Falk-Petersen 2011-07-01 02:10:13 +02:00
parent cc2b154dba
commit b9645cc4ae

View file

@ -124,7 +124,10 @@ namespace SparkleLib {
public string PrevServer {
get {
XmlNode node = SelectSingleNode ("/sparkleshare/user/previous-server/text()");
return node.Value;
if(null != node)
return node.Value;
else
return "";
}
set {
@ -138,7 +141,10 @@ namespace SparkleLib {
public string PrevFolder {
get {
XmlNode node = SelectSingleNode ("/sparkleshare/user/previous-folder/text()");
return node.Value;
if(null != node)
return node.Value;
else
return "";
}
set {