Index: applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintPlugin.java
===================================================================
--- applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintPlugin.java	(revision 33095)
+++ applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintPlugin.java	(revision 33096)
@@ -45,5 +45,5 @@
         do {
             pos--;
-        } while (fileMenu != null && fileMenu.getItem(pos) != null && pos > 2);
+        } while (fileMenu != null && pos > 2 && fileMenu.getItem(pos) != null);
 
         PrintAction printAction = new PrintAction();
