System.ArgumentNullException when using image editor

Description

Action:
1) Capture a piece of the screen and open in the editor.
2) Draw a few lines using the draw freehand tool.
3) Change line thickness back and forth a few times using the scroll wheel.
4) Press undo

Result:
Editor crash with the error popup shown. Image and its edits are lost.

This was repeated, so I think it should be easy to find.

Software version: 1.2.9.129-RELEASE-569de711c0353860aaeb5e5ec4d272e383a101e9 (64 bit)
.NET runtime version: 4.0.30319.36400+
Time: 2017-07-04 10:49:16 +02:00
OS: unknown (x64) 6.1 build 7601 revision 10000
GDI object count: 139
User object count: 69

Exception: System.ArgumentNullException
Message: Value cannot be null.
Parameter name: path

Stack:
at System.Drawing.Graphics.DrawPath(Pen pen, GraphicsPath path)
at Greenshot.Drawing.FreehandContainer.Draw(Graphics graphics, RenderMode renderMode)
at Greenshot.Drawing.DrawableContainer.DrawContent(Graphics graphics, Bitmap bmp, RenderMode renderMode, Rectangle clipRectangle)
at Greenshot.Drawing.DrawableContainerList.Draw(Graphics g, Bitmap bitmap, RenderMode renderMode, Rectangle clipRectangle)
at Greenshot.Drawing.Surface.SurfacePaint(Object sender, PaintEventArgs paintEventArgs)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Configuration dump:

Environment

Windows 7

Status

Assignee

Unassigned

Reporter

Dick Telder

Affects versions

Components

Priority

Critical

Labels

None

Sprint

None
Configure