public class ValidateTechTypeTableHandler {
@CanExecute
public boolean canExecute() {
- return TechTypeTableView.table.getCurrentTable() != null;
+ return TechTypeTableView.table != null &&
+ TechTypeTableView.table.getCurrentTable() != null &&
+ TechTypeTableView.table.getComponentType() != null;
}
@Execute