#15715 closed defect (fixed)

NULL check required in wxRichTextBuffer::SetStyleSheetAndNotify()

Reported by: ikamakj Owned by:
Priority: normal Milestone:
Component: wxRichText Version: 2.9.5
Keywords: wxRichTextBuffer Cc:
Blocked By: Blocking:
Patch: no

Description

SetStyleSheetAndNotify() crashes for a standalone wxRichTextBuffer object. Although the return value of GetRichTextCtrl() is checked before calling GetId(), it is not checked before calling GetFocusObject() on the control.

Change History (1)

comment:1 Changed 13 months ago by juliansmart

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in trunk and 3.0, thanks.

Note: See TracTickets for help on using tickets.