Ticket #561 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

Undo empties content view & raises Null reference on splitting section with empty phrase.

Reported by: rachana-singh Owned by: avneesh-singh
Priority: major Milestone: Obi 2.0 Beta
Component: Application Version: 2.0
Keywords: Cc:
Blocked By: Blocking:
Time planned: 1d Time remaining: 1d
Time spent: 1d Estimated Number of Hours: 0.0
Add Hours to Ticket: 0 Billable?: yes
Total Hours: 0

Description

create a section add empty phrase in it.now select that phrase and do split section.another section will be created with same phrase only start will be added in the section title.Now do undo.CV becomes empty.again do undo nothing happens. after sometime crash occurs.
int index = parent.Children.IndexOf? (this); here index is 0 and parent is null.

System.NullReferenceException? was unhandled

Message="Object reference not set to an instance of an object." Source="Obi" StackTrace?:

at Obi.SectionNode?.get_PrecedingSibling() in C:\Users\Rachana Singh\Desktop\DAISY\obi\trunk\Obi\Obi\SectionNode?.cs:line 269 at Obi.SectionNode?.get_PrecedingSection() in C:\Users\Rachana Singh\Desktop\DAISY\obi\trunk\Obi\Obi\SectionNode?.cs:line 282 at Obi.ProjectView?.ContentView?.SelectPreviousStrip?() in C:\Users\Rachana Singh\Desktop\DAISY\obi\trunk\Obi\Obi\ProjectView?\ContentView?.cs:line 3878 at Obi.ProjectView?.ContentView?.ProcessCmdKey?(Message& msg, Keys key) in C:\Users\Rachana Singh\Desktop\DAISY\obi\trunk\Obi\Obi\ProjectView?\ContentView?.cs:line 3581

at System.Windows.Forms.Control.ProcessCmdKey?(Message& msg, Keys keyData) at System.Windows.Forms.ContainerControl?.ProcessCmdKey?(Message& msg, Keys keyData) at System.Windows.Forms.Control.ProcessCmdKey?(Message& msg, Keys keyData)

at System.Windows.Forms.ContainerControl?.ProcessCmdKey?(Message& msg, 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) at System.Windows.Forms.Application.ThreadContext?.System.Windows.Forms.UnsafeNativeMethods?.IMsoComponent.FPreTranslateMessage(MSG& msg) at System.Windows.Forms.Application.ComponentManager?.System.Windows.Forms.UnsafeNativeMethods?.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext?.RunMessageLoopInner?(Int32 reason, ApplicationContext? context) at System.Windows.Forms.Application.ThreadContext?.RunMessageLoop?(Int32 reason, ApplicationContext? context) at System.Windows.Forms.Application.Run(Form mainForm) at Obi.Program.Main(String[] args) in C:\Users\Rachana Singh\Desktop\DAISY\obi\trunk\Obi\Obi\Program.cs:line 29 at System.AppDomain?._nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain?.ExecuteAssembly?(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio?.HostingProcess?.HostProc?.RunUsersAssembly?() at System.Threading.ThreadHelper?.ThreadStart_Context(Object state) at System.Threading.ExecutionContext?.Run(ExecutionContext? executionContext, ContextCallback? callback, Object state) at System.Threading.ThreadHelper?.ThreadStart?()

InnerException?:

Change History

comment:1 Changed 8 years ago by avneesh-singh

  • Status changed from new to closed
  • Summary changed from Undo raises Null reference on splitting section with empty phrase. to Undo empties content view & raises Null reference on splitting section with empty phrase.
  • Resolution set to fixed
  • Milestone set to Obi 2.0 Beta
Note: See TracTickets for help on using tickets.