提交 9f5a20df 编写于 作者: S Serge Rider

#1840 Dummy NPE fix


Former-commit-id: 202020b0
上级 8d469528
...@@ -71,7 +71,7 @@ class DatabaseNavigatorLabelProvider extends ColumnLabelProvider implements IFon ...@@ -71,7 +71,7 @@ class DatabaseNavigatorLabelProvider extends ColumnLabelProvider implements IFon
@Override @Override
public String getText(Object obj) public String getText(Object obj)
{ {
String text; String text = null;
if (obj instanceof ILabelProvider) { if (obj instanceof ILabelProvider) {
text = ((ILabelProvider)obj).getText(obj); text = ((ILabelProvider)obj).getText(obj);
/* /*
...@@ -80,7 +80,7 @@ class DatabaseNavigatorLabelProvider extends ColumnLabelProvider implements IFon ...@@ -80,7 +80,7 @@ class DatabaseNavigatorLabelProvider extends ColumnLabelProvider implements IFon
*/ */
} else if (obj instanceof DBNNode) { } else if (obj instanceof DBNNode) {
text = ((DBNNode) obj).getNodeName(); text = ((DBNNode) obj).getNodeName();
} else { } else if (obj != null) {
text = obj.toString(); text = obj.toString();
} }
if (text == null) { if (text == null) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册