System.NullReferenceException "Object reference not set to an instance of an object

When I paste data into the textbox then edit it, I get a null exception error. There seems to be a special character between "Capacity" and "for" words which is causing it to fail. When you click on the delete button on the keyboard it will cause a null exception error when your cursor is after the word Capacity which should move the for word to the same line.

Sample:

will limit all nominations up to the total Net System Capacity
for Intraday 1 (Cycle 3), Intraday 2 (Cycle 4) and Intraday 3 (Cycle 5).

Excp.StackTrace

System.NullReferenceException

  Message=Object reference not set to an instance of an object.

  Source=Syncfusion.SfRichTextBoxAdv.WPF

  StackTrace:

   at Syncfusion.Windows.Controls.RichTextBoxAdv.ParagraphAdv.RemoveAtOffset(BaseHistoryInfo baseHistoryInfo, Double offset)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.SelectionAdv.SingleDelete(Boolean isRedoing)

   at Syncfusion.Windows.Controls.RichTextBoxAdv.SelectionAdv.OnDelete()

   at Syncfusion.Windows.Controls.RichTextBoxAdv.LayoutViewer.HandleDeleteKey()

   at Syncfusion.Windows.Controls.RichTextBoxAdv.SfRichTextBoxAdv.OnDeleteCommandExecuted(Object sender, ExecutedRoutedEventArgs e)


1 Reply

KG Kalaivannan Ganesan Syncfusion Team November 22, 2021 08:41 AM UTC

Hi Salvania,

Thanks for contacting Syncfusion support.

The reported issue has been fixed and included in our latest release of 19.1.0.54V. We request you to use the any of latest version of SfRichTextBoxAdv control to overcome this issue. If you need a patch for this fix in the old version, which is you are currently using, please revert us.

Please let us know if you have any other questions

Regards,
Kalaivannan Ganesan
 


Loader.
Up arrow icon