experimental 24-bit image protocol
[nikiroo-utils.git] / src / jexer / TComboBox.java
index fe1366d3aad49693802efa0a3af0fee114abd3fc..b64dbde058ad006d4a5d80fd83e9ddd4303e8ba2 100644 (file)
@@ -119,7 +119,7 @@ public class TComboBox extends TWidget {
                         TComboBox.this.activate(field);
                     }
                     if (updateAction != null) {
-                        updateAction.DO();
+                        updateAction.DO(TComboBox.this);
                     }
                 }
             }
@@ -222,8 +222,12 @@ public class TComboBox extends TWidget {
      */
     @Override
     public void setWidth(final int width) {
-        field.setWidth(width - 3);
-        list.setWidth(width);
+        if (field != null) {
+            field.setWidth(width - 3);
+        }
+        if (list != null) {
+            list.setWidth(width);
+        }
         super.setWidth(width);
     }