Pinta master on Windows XP:
1. Restart Pinta.
2. New image.
3. Text from tools. Do not click on canvas.
4. CTRL+W to close an image. Crash appears.
========
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Pinta.Tools.TextTool.RedrawText(Boolean showCursor, Boolean useTextLayer) in C:\Zaloga\Pinta-master\Pinta.Tools\Tools\TextTool.cs:line 985
at Pinta.Tools.TextTool.UpdateMouseCursor() in C:\Zaloga\Pinta-master\Pinta.Tools\Tools\TextTool.cs:line 713
at Pinta.Tools.TextTool.OnKeyDown(DrawingArea canvas, KeyPressEventArgs args) in C:\Zaloga\Pinta-master\Pinta.Tools\Tools\TextTool.cs:line 739
at Pinta.Core.BaseTool.DoKeyPress(DrawingArea canvas, KeyPressEventArgs args) in c:\Zaloga\Pinta-master\Pinta.Core\Classes\BaseTool.cs:line 139
at Pinta.Gui.Widgets.PintaCanvas.DoKeyPressEvent(Object o, KeyPressEventArgs e) in c:\Zaloga\Pinta-master\Pinta.Gui.Widgets\Widgets\Canvas\PintaCanvas.cs:line 185
at Pinta.MainWindow.MainWindow_KeyPressEvent(Object o, KeyPressEventArgs e) in c:\Zaloga\Pinta-master\Pinta\MainWindow.cs:line 115
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at GLib.Signal.ClosureInvokedCB(Object o, ClosureInvokedArgs args)
at GLib.SignalClosure.Invoke(ClosureInvokedArgs args)
at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
========
The bug is actually from pressing Control, not from closing the file.