CORPRIV-665: Protect harder against NPE

This commit is contained in:
Chris Rankin 2017-02-09 17:11:26 +00:00
parent 6fd9399b20
commit ccfbfde830

View File

@ -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
}