mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
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:
parent
aeefa9a767
commit
2c8bf66009
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue