mirror of
https://github.com/corda/corda.git
synced 2024-12-28 00:38:55 +00:00
Use "safe" casting operator.
This commit is contained in:
parent
e42613bffe
commit
3895d34080
@ -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
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user