Greenshot image editor error occurs upon deleting added text box

Description

Running into a crash in the greenshot image editor, but it is only a error report, the application does not crash and can continue to be used.

Reproduction steps:

  • Capture an area to snap

  • Open in greenshot image editor

  • Add textbox

  • Delete textbox

  • Error window appears with following content:

Software version: 1.3.105 - 5db1f5564b (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2020-07-09 15:00:48 +02:00
OS: Windows 10 1809 x64 build 17763
GDI object count: 283
User object count: 414

Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.

Stack:
at Greenshot.Drawing.TextContainer.SwitchParent(Surface newParent) in d:\a\1\s\Greenshot\Drawing\TextContainer.cs:line 163
at Greenshot.Drawing.Surface.RemoveElement(IDrawableContainer elementToRemove, Boolean makeUndoable, Boolean invalidate, Boolean generateEvents) in d:\a\1\s\Greenshot\Drawing\Surface.cs:line 1665
at Greenshot.Drawing.Surface.RemoveElements(IDrawableContainerList elementsToRemove, Boolean makeUndoable) in d:\a\1\s\Greenshot\Drawing\Surface.cs:line 1637
at Greenshot.Drawing.Surface.RemoveSelectedElements() in d:\a\1\s\Greenshot\Drawing\Surface.cs:line 1717
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.ProcessCmdKey(Message& m, Keys keyData)
at System.Windows.Forms.ToolStripManager.ProcessShortcut(Message& m, Keys shortcut)
at System.Windows.Forms.Form.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.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.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)

Configuration dump:

Environment

None

Assignee

Unassigned

Reporter

Jeroen vA

Affects versions

Components

None

Priority

Major

Labels

None
Configure