Added fail-fast for Confluence & Jira, this prevents slow-down in the Destination-Picker when moving over the Jira or Confluence destination and no login was made.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1794 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-04-18 10:25:12 +00:00
commit d73d80fe1a
4 changed files with 19 additions and 17 deletions

View file

@ -92,7 +92,7 @@ namespace GreenshotConfluencePlugin {
}
public override IEnumerable<IDestination> DynamicDestinations() {
if (!ConfluencePlugin.ConfluenceConnectorNoLogin.isLoggedIn) {
if (ConfluencePlugin.ConfluenceConnectorNoLogin == null || !ConfluencePlugin.ConfluenceConnectorNoLogin.isLoggedIn) {
yield break;
}
List<Confluence.Page> currentPages = ConfluenceUtils.GetCurrentPages();