Fixed NPE

This commit is contained in:
Eyck Jentzsch 2019-03-14 21:23:39 +01:00
parent 8a8691a889
commit e25f56a8a9

View File

@ -271,7 +271,7 @@ public class TransactionDetails {
treeViewer.setInput(object);
if(bounds!=null) {
TreeItem ti = treeViewer.getTree().getItem (new Point(bounds.x, bounds.y));
treeViewer.getTree().setTopItem(ti);
if(ti!=null) treeViewer.getTree().setTopItem(ti);
}
} else {
treeViewer.setInput(null);