This is a migrated thread and some comments may be shown as answers.

Exception Report

1 Answer 63 Views
RichTextBox (obsolete as of Q3 2014 SP1)
This is a migrated thread and some comments may be shown as answers.
Martin Horst
Top achievements
Rank 1
Martin Horst asked on 15 Apr 2013, 06:50 AM
Hi,

i'm currently evaluating the Rich Textbox Control and i found some minor bug in it. If you add a hyper link at the beginning of the document and then try to delete it in the editor, an exception is thrown. 

This is how I add the hyper link:
HyperlinkInfo lHyperlinkInfo = new HyperlinkInfo();
lHyperlinkInfo.NavigateUri = "mailto://test@test.de";
radRichTextBox1.InsertHyperlink(lHyperlinkInfo, "Test");

After deleting the hyper link in the editor, the following exception appears:
System.NullReferenceException: FromElement must not be null.
bei Telerik.WinControls.RichTextBox.Model.DocumentElement.CopyPropertiesFrom(DocumentElement fromElement)
bei Telerik.WinControls.RichTextBox.DocumentView.GetCurrentParagraphStyle()
bei Telerik.WinControls.RichTextBox.DocumentView.UpdateCurrentStyles()
bei Telerik.WinControls.RichTextBox.DocumentView.document_DocumentArranged(Object sender, EventArgs e)
bei Telerik.WinControls.RichTextBox.Model.RadDocument.OnDocumentArranged()
bei Telerik.WinControls.RichTextBox.Layout.DocumentLayoutBox.ArrangeOverride(SizeF finalSize)
bei Telerik.WinControls.RichTextBox.Layout.LayoutElement.ArrangeCore(RectangleF finalRect)
bei Telerik.WinControls.RichTextBox.Layout.LayoutElement.Arrange(RectangleF finalRect)
bei Telerik.WinControls.RichTextBox.Layout.ContextLayoutManager.UpdateLayout()
bei Telerik.WinControls.RichTextBox.DocumentPosition.CallOnPositionChanging()
bei Telerik.WinControls.RichTextBox.DocumentPosition.MoveToPreviousInline()
bei Telerik.WinControls.RichTextBox.DocumentPosition.GetPreviousInlineBox()
bei Telerik.WinControls.RichTextBox.Model.RadDocument.IsValidPosition(DocumentPosition p)
bei Telerik.WinControls.RichTextBox.Model.RadDocument.EnsureValidPositionCallback(DocumentPosition p, Func`1 IsMoveForward)
bei Telerik.WinControls.RichTextBox.DocumentPosition.ResumePositionValidation()
bei Telerik.WinControls.RichTextBox.Model.RadDocument.ExecuteCommand(CommandBase command, DocumentCommandContext context)
bei Telerik.WinControls.RichTextBox.DocumentView.Delete(Boolean deletePrevious)
bei Telerik.WinControls.RichTextBox.UI.InputBehavior.ProcessBackKey(KeyEventArgs e)
bei Telerik.WinControls.RichTextBox.UI.InputBehavior.ProcessKeyDown(KeyEventArgs e)
bei Telerik.WinControls.RichTextBox.RadRichTextBox.OnKeyDown(KeyEventArgs e)
bei System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
bei System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
bei System.Windows.Forms.Control.WmKeyChar(Message& m)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
bei Telerik.WinControls.RadControl.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Best regards
Martin

1 Answer, 1 is accepted

Sort by
0
Svett
Telerik team
answered on 17 Apr 2013, 03:53 PM
Hello Martin,

We are aware about this issue. We have already addressed it in the latest release. Could you upgrade to the latest version Q1 2013 SP1 (2013.1 321)? If the issue is still presented, I please give us more information about your scenario and how you are trying to delete the hyperlink.

Kind regards,
Svett
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
RichTextBox (obsolete as of Q3 2014 SP1)
Asked by
Martin Horst
Top achievements
Rank 1
Answers by
Svett
Telerik team
Share this question
or