src/macosx/classes/com/apple/laf/AquaComboBoxPopup.java

Print this page

        

@@ -119,10 +119,14 @@
 
     @Override
     public void show() {
         final int startItemCount = comboBox.getItemCount();
 
+        if (startItemCount == 0) {
+            return;
+        }
+
         final Rectangle popupBounds = adjustPopupAndGetBounds();
         if (popupBounds == null) return; // null means don't show
 
         comboBox.firePopupMenuWillBecomeVisible();
         show(comboBox, popupBounds.x, popupBounds.y);