Fixed NPE
This commit is contained in:
parent
8a8691a889
commit
e25f56a8a9
|
@ -271,7 +271,7 @@ public class TransactionDetails {
|
||||||
treeViewer.setInput(object);
|
treeViewer.setInput(object);
|
||||||
if(bounds!=null) {
|
if(bounds!=null) {
|
||||||
TreeItem ti = treeViewer.getTree().getItem (new Point(bounds.x, bounds.y));
|
TreeItem ti = treeViewer.getTree().getItem (new Point(bounds.x, bounds.y));
|
||||||
treeViewer.getTree().setTopItem(ti);
|
if(ti!=null) treeViewer.getTree().setTopItem(ti);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
treeViewer.setInput(null);
|
treeViewer.setInput(null);
|
||||||
|
|
Loading…
Reference in New Issue