Index: /applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/josm/CompatibilityUtil.java
===================================================================
--- /applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/josm/CompatibilityUtil.java	(revision 16583)
+++ /applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/josm/CompatibilityUtil.java	(revision 16584)
@@ -65,5 +65,5 @@
 		try {
 			Method m = Main.class.getMethod("getCurrentDataSet");
-			ds = (DataSet) m.invoke(null);
+			ds = (DataSet) m.invoke(Main.main);
 		} catch(Exception e) {
 			throw new RuntimeException(e);
