提交 46d01b20 编写于 作者: S serge-rider

NPEs fixes

上级 5470415e
...@@ -91,7 +91,7 @@ public class DriverPropertiesDialogPage extends ConnectionPageAbstract ...@@ -91,7 +91,7 @@ public class DriverPropertiesDialogPage extends ConnectionPageAbstract
try { try {
propertySource = propsControl.makeProperties( propertySource = propsControl.makeProperties(
monitor, monitor,
site.getDriver(), getSite().getDriver(),
tmpConnectionInfo); tmpConnectionInfo);
} finally { } finally {
monitor.done(); monitor.done();
......
...@@ -236,7 +236,10 @@ public class MetaDataPanel implements IResultSetPanel { ...@@ -236,7 +236,10 @@ public class MetaDataPanel implements IResultSetPanel {
@Override @Override
public void completeLoading(Collection<DBDAttributeBinding> items) { public void completeLoading(Collection<DBDAttributeBinding> items) {
super.completeLoading(items); super.completeLoading(items);
((TreeViewer)attributeList.getItemsViewer()).expandToLevel(2); TreeViewer itemsViewer = (TreeViewer) attributeList.getItemsViewer();
if (!itemsViewer.getControl().isDisposed()) {
itemsViewer.expandToLevel(2);
}
} }
}); });
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册