Fix NullReferenceException. #858
This commit is contained in:
parent
f3784ddc98
commit
7e2badc3b4
|
@ -165,20 +165,18 @@ namespace SparkleShare {
|
||||||
|
|
||||||
|
|
||||||
public SparkleControllerBase ()
|
public SparkleControllerBase ()
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public virtual void Initialize ()
|
|
||||||
{
|
{
|
||||||
string app_data_path = Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData);
|
string app_data_path = Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData);
|
||||||
string config_path = Path.Combine (app_data_path, "sparkleshare");
|
string config_path = Path.Combine (app_data_path, "sparkleshare");
|
||||||
|
|
||||||
this.config = new SparkleConfig (config_path, "config.xml");
|
this.config = new SparkleConfig (config_path, "config.xml");
|
||||||
SparkleConfig.DefaultConfig = this.config;
|
SparkleConfig.DefaultConfig = this.config;
|
||||||
|
|
||||||
FoldersPath = this.config.FoldersPath;
|
FoldersPath = this.config.FoldersPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public virtual void Initialize ()
|
||||||
|
{
|
||||||
SparklePlugin.PluginsPath = PluginsPath;
|
SparklePlugin.PluginsPath = PluginsPath;
|
||||||
InstallProtocolHandler ();
|
InstallProtocolHandler ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue