﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
13766	[PATCH] Disable the JosmAction Orthogonalize.Undo when nothing is selected	floscher	team	"Currently (version 11088) a `NullPointerException` occurs, when you have no `OsmDataLayer` open and press `Shift+Q`.

The reason for that is, that the `JosmAction` `Orthogonalize.Undo` is always active, but its `actionPerformed(e)` method assumes, there is always an edit layer. If there is none, it throws a NullPointerException.

This patch fixes this behaviour by letting this action implement the methods `updateEnabledState()` and `updateEnabledState(Collection<? extends OsmPrimitive> selection)`. So now the action is only active, when an edit layer exists and at minimum one `OsmPrimitive` is selected."	defect	closed	normal	16.10	Core	latest	fixed		
