Fixed NullReference at Shutdown

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@867 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2010-08-25 06:21:30 +00:00
commit 2c8bf66009
2 changed files with 6 additions and 2 deletions

View file

@ -66,8 +66,10 @@ namespace GreenshotConfluencePlugin {
public virtual void Shutdown() { public virtual void Shutdown() {
LOG.Debug("Plugin shutdown."); LOG.Debug("Plugin shutdown.");
host.OnImageEditorOpen -= new OnImageEditorOpenHandler(ImageEditorOpened); host.OnImageEditorOpen -= new OnImageEditorOpenHandler(ImageEditorOpened);
if (confluenceConnector != null) {
confluenceConnector.logout(); confluenceConnector.logout();
} }
}
/// <summary> /// <summary>
/// Implementation of the IPlugin.Configure /// Implementation of the IPlugin.Configure

View file

@ -67,8 +67,10 @@ namespace GreenshotJiraPlugin {
public virtual void Shutdown() { public virtual void Shutdown() {
LOG.Debug("Plugin shutdown."); LOG.Debug("Plugin shutdown.");
host.OnImageEditorOpen -= new OnImageEditorOpenHandler(ImageEditorOpened); host.OnImageEditorOpen -= new OnImageEditorOpenHandler(ImageEditorOpened);
if (jiraConnector != null) {
jiraConnector.logout(); jiraConnector.logout();
} }
}
/// <summary> /// <summary>
/// Implementation of the IPlugin.Configure /// Implementation of the IPlugin.Configure