mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +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?
|
private val behaviour: TabPaneBehavior?
|
||||||
get() = (tabPane?.skin as TabPaneSkin?)?.behavior
|
get() = (tabPane?.skin as? TabPaneSkin)?.behavior
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user