Skip to content

NPE in TableColumn.cellValueFactory_= #371

@s-bernard

Description

@s-bernard

In:


if f(v) return null, we get a NPE. However, it is a totally acceptable value for javafx to return null here.

Suggested fix, replace line 320 by Option(f(v)).map(_.delegate).getOrElse(null).

Maybe a future solution would be to change f to be f: TableColumn.CellDataFeatures[S, T] => Option[ObservableValue[T, T]] to limit the number of Option wrapping as discussed in #370.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions