﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
20227	[Patch] Presets not displayed when creating new relation	michael2402	team	"When creating a new relation, presets are not displayed. One needs to close the relation dialog and re-open it.

I guess that this is because in org.openstreetmap.josm.gui.tagging.TagEditorModel#getTaggingPresetTypes, primitive is null.

I cannot fully test it, since `ant run` wont work for me (does not compile, some dependecy problems I dont want to dig into now), but this should fix it (at least when doing it manually in the debugger, it works):
{{{
#!diff
Index: src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
===================================================================
--- src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java      (Revision 17404)
+++ src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java      (Arbeitskopie)
@@ -381,7 +381,7 @@
         }
 
         public void run() {
-            RelationEditor.getEditor(MainApplication.getLayerManager().getEditLayer(), null, null).setVisible(true);
+            RelationEditor.getEditor(MainApplication.getLayerManager().getEditLayer(), new Relation(), null).setVisible(true);
         }
 
         @Override
}}}
"	defect	new	normal		Core				
