dotnet / machinelearning

ML.NET is an open source and cross-platform machine learning framework for .NET.
https://dot.net/ml
MIT License
8.93k stars 1.86k forks source link

DataFrame VBufferDataFrameColumn fails if element is set to Null #6852

Open asmirnov82 opened 9 months ago

asmirnov82 commented 9 months ago

Describe the bug

Code to reproduce:

DataFrameColumn vBufferColumn = new VBufferDataFrameColumn<int>("VBuffer", 1);
vBufferColumn[0] = null;

Fails with System.NullReferenceException: 'Object reference not set to an instance of an object.'