From e25f56a8a965892e78fe82b5b263fe3db47511e6 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Thu, 14 Mar 2019 21:23:39 +0100 Subject: [PATCH] Fixed NPE --- .../scviewer/e4/application/parts/TransactionDetails.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/parts/TransactionDetails.java b/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/parts/TransactionDetails.java index 03afe51..627593d 100644 --- a/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/parts/TransactionDetails.java +++ b/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/parts/TransactionDetails.java @@ -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);