Issue 211: Unhandled System.NullReferenceException in pwiz.Skyline.Model.Find.BookmarkEnumerator.set_Current

issues
Status:closed
Assigned To:Guest
Type:Defect
Area:Skyline
Priority:2
Milestone:1.4
Opened:2012-11-02 10:58 by Brendan MacLean
Changed:2012-11-15 10:50 by Brendan MacLean
Resolved:2012-11-03 00:37 by Nick Shulman
Resolution:Fixed
Closed:2012-11-15 10:50 by Brendan MacLean
2012-11-02 10:58 Brendan MacLean
Title»Unhandled System.NullReferenceException in pwiz.Skyline.Model.Find.BookmarkEnumerator.set_Current
Assigned To»Nick Shulman
Type»Defect
Area»Skyline
Priority»2
Milestone»1.4
Skyline version: 1.3.9.4037
Installation ID: 684929cd-7c0d-4047-850f-1be16d2a8d5b
Exception type: System.NullReferenceException
Error message: Object reference not set to an instance of an object.

Stack trace:
   at pwiz.Skyline.Model.Find.BookmarkEnumerator.set_Current(Bookmark value) in C:\proj\skyline_1_4_x64\pwiz_tools\Skyline\Model\Find\BookmarkEnumerator.cs:line 202
   at pwiz.Skyline.Model.Find.BookmarkEnumerator..ctor(SrmDocument document, Bookmark bookmark) in C:\proj\skyline_1_4_x64\pwiz_tools\Skyline\Model\Find\BookmarkEnumerator.cs:line 51
   at pwiz.Skyline.SkylineWindow.FindNext(Boolean reverse) in C:\proj\skyline_1_4_x64\pwiz_tools\Skyline\Skyline.cs:line 1444
   at pwiz.Skyline.EditUI.FindNodeDlg.FindNext() in C:\proj\skyline_1_4_x64\pwiz_tools\Skyline\EditUI\FindNodeDlg.cs:line 115
   at System.Windows.Forms.Button.PerformClick()
   at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)
   at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
   at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
   at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)

2012-11-03 00:37 Nick Shulman
resolve as Fixed
Statusopen»resolved
Assigned ToNick Shulman»Brendan MacLean
Checked in a fix to the 1.4 branch rev 4073.
It looked like this could happen if the SequenceTree said that the selected IdentityPath was null, so I made it so that the Bookmark class treats null as IdentityPath.ROOT.

2012-11-15 10:50 Brendan MacLean
close
Statusresolved»closed
Assigned ToBrendan MacLean»Guest