dataframe icon indicating copy to clipboard operation
dataframe copied to clipboard

NPE when using not null KProperty to update data with nulls

Open koperagen opened this issue 2 years ago • 0 comments

So this code

@DataSchema
interface Schema {
    val i: Int
}

val df = dataFrameOf("i")(1, null)

df.fillNulls(Schema::i).with { 42 }

causes java.lang.NullPointerException More generic example (fillNulls uses update): df.update(Schema::i).with { 42 }.

fillNulls can avoid throwing exception. Not sure what to do about update. Maybe more meaningful error message

koperagen avatar Aug 02 '22 18:08 koperagen