BUG-2115: This could potentially solve the issue, but there might be a next one as a follow up.

This commit is contained in:
Robin 2017-01-13 12:16:25 +01:00
commit 8fb430aaed
2 changed files with 22 additions and 8 deletions

View file

@ -78,9 +78,17 @@ namespace GreenshotJiraPlugin {
{
if (_jiraIssue != null)
{
displayIcon = jiraConnector.GetIssueTypeBitmapAsync(_jiraIssue).Result;
// Try to get the issue type as icon
try
{
displayIcon = jiraConnector.GetIssueTypeBitmapAsync(_jiraIssue).Result;
}
catch (Exception ex)
{
Log.Warn($"Problem loading issue type for {_jiraIssue.Key}, ignoring", ex);
}
}
else
if (displayIcon == null)
{
displayIcon = jiraConnector.FavIcon;
}