Use "safe" casting operator.

This commit is contained in:
Chris Rankin 2017-02-12 13:52:09 +00:00
parent e42613bffe
commit 3895d34080

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
}