diwakari / csharptest-net

Automatically exported from code.google.com/p/csharptest-net
0 stars 0 forks source link

exception when using 'view-only' type jira account #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. configure jira:url or parameters using a view-only account
2. open JiraSvn window in commit dialog, select any issue
3. This is the exception:

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of 
an object.
   at CSharpTest.Net.SvnJiraIntegration.JiraConnection.GetActions
(JiraIssue issue) in D:\csharptestnet\src\Tools\SvnPlugin
\JiraConnection.cs:line 199
   at CSharpTest.Net.SvnJiraIntegration.JiraIssue.GetActions() in D:
\csharptestnet\src\Tools\SvnPlugin\JiraIssue.cs:line 80
   at CSharpTest.Net.SvnPlugin.UI.IssueItemView.GetActions() in D:
\csharptestnet\src\Tools\SvnPlugin\UI\IssueItemView.cs:line 95
   at CSharpTest.Net.SvnPlugin.UI.IssuesListView.RebuildActions() in D:
\csharptestnet\src\Tools\SvnPlugin\UI\IssuesListView.cs:line 356
   at CSharpTest.Net.SvnPlugin.UI.IssuesList.listView_ItemChecked(Object 
sender, ItemCheckedEventArgs e) in D:\csharptestnet\src\Tools\SvnPlugin\UI
\IssuesList.cs:line 129
   at System.Windows.Forms.ListView.WmReflectNotify(Message& m)
   at System.Windows.Forms.ListView.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, 
IntPtr wparam, IntPtr lparam)
************************

This happens when loggin in on our Jira with a guest account; that account 
only has permission to view all projects and issues, but cannot do any 
modifications at all.

Original issue reported on code.google.com by deathwil...@gmail.com on 21 Nov 2009 at 2:33

GoogleCodeExporter commented 8 years ago
edit: this was easily fixed by adding a try/catch around the foreach in 
JiraConnection.GetActions(); catch block is simply empty.

Original comment by deathwil...@gmail.com on 21 Nov 2009 at 4:38

GoogleCodeExporter commented 8 years ago
Doh! I'll get this in the next release.

Thanks,

-- Roger

Original comment by Grig...@gmail.com on 21 Nov 2009 at 4:42

GoogleCodeExporter commented 8 years ago

Original comment by Grig...@gmail.com on 21 Nov 2009 at 4:42

GoogleCodeExporter commented 8 years ago
Fixed in  1.10.607.213 - Added an catch to ensure that null collections don't 
blow up.

Original comment by Grig...@gmail.com on 15 Jun 2010 at 5:39