Index: /applications/editors/josm/plugins/photo_geotagging/src/org/openstreetmap/josm/plugins/photo_geotagging/GeotaggingAction.java
===================================================================
--- /applications/editors/josm/plugins/photo_geotagging/src/org/openstreetmap/josm/plugins/photo_geotagging/GeotaggingAction.java	(revision 27369)
+++ /applications/editors/josm/plugins/photo_geotagging/src/org/openstreetmap/josm/plugins/photo_geotagging/GeotaggingAction.java	(revision 27370)
@@ -302,5 +302,5 @@
                         l.setIcon(UIManager.getIcon("OptionPane.warningIcon"));
                         int override = new ExtendedDialog(
-                                ((PleaseWaitProgressMonitor) progressMonitor).getDialog(),
+                                Main.parent,
                                 tr("Override old backup files?"),
                                 new String[] {tr("Cancel"), tr("Keep old backups and continue"), tr("Override")})
