From ccfbfde830e412af9b437783d62742dd0759a236 Mon Sep 17 00:00:00 2001 From: Chris Rankin Date: Thu, 9 Feb 2017 17:11:26 +0000 Subject: [PATCH] CORPRIV-665: Protect harder against NPE --- .../src/main/kotlin/net/corda/demobench/ui/CloseableTab.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/demobench/src/main/kotlin/net/corda/demobench/ui/CloseableTab.kt b/tools/demobench/src/main/kotlin/net/corda/demobench/ui/CloseableTab.kt index 145a5863c9..55a9a5116f 100644 --- a/tools/demobench/src/main/kotlin/net/corda/demobench/ui/CloseableTab.kt +++ b/tools/demobench/src/main/kotlin/net/corda/demobench/ui/CloseableTab.kt @@ -15,6 +15,6 @@ class CloseableTab(text: String, content: Node) : Tab(text, content) { } private val behaviour: TabPaneBehavior? - get() = (tabPane.skin as TabPaneSkin?)?.behavior + get() = (tabPane?.skin as TabPaneSkin?)?.behavior }