Index: /trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSettingGroupGui.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSettingGroupGui.java	(revision 17269)
+++ /trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSettingGroupGui.java	(revision 17270)
@@ -45,5 +45,7 @@
         submenu.setIcon(group.icon);
         // Add the "toggle all settings" action
-        if (settings.size() >= 2) {
+        if (settings.isEmpty()) {
+            submenu.setEnabled(false);
+        } else if (settings.size() >= 2) {
             JMenuItem item = new JMenuItem(new AbstractAction(tr("Toggle all settings")) {
                 @Override
