ron
04/08/2017, 10:13 PMedvin
04/08/2017, 10:14 PMval groupsProperty = SimpleObjectProperty(mutableListOf<GroupFX>().observable())
should be val groupsProperty = SimpleListProperty<GroupFX>()
edvin
04/08/2017, 10:16 PMgroups = group.groups?.map { GroupFX(it) }
instead of what you do in updateGroup
.edvin
04/08/2017, 10:17 PMsetAll
with that.ron
04/08/2017, 10:18 PMedvin
04/08/2017, 10:19 PMGroupFX
object, which will call this code for the children of the passed in group.ron
04/08/2017, 10:25 PMron
04/08/2017, 10:25 PMedvin
04/08/2017, 10:25 PMron
04/08/2017, 10:26 PMron
04/08/2017, 10:26 PMron
04/08/2017, 10:26 PMedvin
04/08/2017, 10:26 PMron
04/08/2017, 10:28 PMron
04/08/2017, 10:28 PMedvin
04/08/2017, 10:29 PMgtnarg
04/08/2017, 10:29 PMedvin
04/08/2017, 10:30 PMedvin
04/08/2017, 10:31 PMedvin
04/08/2017, 10:31 PMgtnarg
04/08/2017, 10:31 PMron
04/08/2017, 10:31 PM00:30:07.603 [JavaFX Application Thread] ERROR ErrorHandler - Uncaught error
java.lang.NullPointerException: null
at keepassFX.fxui.model.GroupFX.<init>(model.kt:34)
at keepassFX.fxui.views.GroupView$root$1.invoke(GroupView.kt:22)
at keepassFX.fxui.views.GroupView$root$1.invoke(GroupView.kt:19)
at tornadofx.FXKt.opcr(FX.kt:400)
edvin
04/08/2017, 10:32 PMedvin
04/08/2017, 10:32 PMgroups.setAll(group.groups?.map { GroupFX(it) } ?: emptyList())
?ron
04/08/2017, 10:33 PMgroups.setAll(group.groups?.map(::GroupFX))
ron
04/08/2017, 10:33 PMedvin
04/08/2017, 10:35 PMval groups = FXCollections.observableArrayList(group.groups?.map(::GroupFX) ?: emptyList())
?edvin
04/08/2017, 10:35 PMgroupsProperty
and the updateGroup
function alltogether?ron
04/08/2017, 10:36 PMron
04/08/2017, 10:36 PM