提交 50e9d013 编写于 作者: S Serge Rider

#8556 XLSX import config fix

上级 95ff09b9
......@@ -61,6 +61,7 @@ import org.jkiss.dbeaver.ui.UIUtils;
import org.jkiss.dbeaver.ui.navigator.NavigatorUtils;
import org.jkiss.dbeaver.ui.navigator.dialogs.ObjectBrowserDialog;
import org.jkiss.dbeaver.ui.navigator.dialogs.SelectDataSourceDialog;
import org.jkiss.utils.CommonUtils;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
......@@ -255,7 +256,7 @@ public class DataTransferTaskConfigurator implements DBTTaskConfigurator {
TableItem item = new TableItem(objectsTable, SWT.NONE);
item.setData(pipe);
item.setImage(0, DBeaverIcons.getImage(node.getObjectIcon()));
item.setText(0, node.getObjectName());
item.setText(0, CommonUtils.toString(node.getObjectName(), "?"));
DBSObject object = node.getDatabaseObject();
if (object != null && object.getDataSource() != null) {
......
......@@ -289,6 +289,9 @@ public class DataTransferSettings implements DBTTaskSettings<DBPObject> {
String processorId = CommonUtils.toString(config.get("processor"));
if (!CommonUtils.isEmpty(processorId)) {
savedProcessor = processorNode.getProcessor(processorId);
if (savedProcessor == null) {
state.addError(new DBException("Processor '" + processorId + "' not found in '" + processorNode.getName() + "'"));
}
}
}
if (this.consumerOptional && savedConsumer != null) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册