"Object reference not set to an instance of an object" on v21.2.10

Hi,

This sample was working fine in 21.2.5 and now on 21.2.9 it throws an error :

<div>

    <SfComboBox TValue="string" TItem="string" DataSource="testSource" OnInput="change"

                AllowFiltering="true"

                EnableVirtualization="true"

                FilterType="Syncfusion.Blazor.DropDowns.FilterType.Contains"

                FloatLabelType="FloatLabelType.Auto"

                Autofill="true" />

</div>


@code {

    private List<string> testSource = new();

    private async Task change(Microsoft.AspNetCore.Components.ChangeEventArgs args)

    {

        testSource.Clear();

        await Task.Delay(1000);

        testSource = new List<string> { "1", "2", "3", "4" };

    }

}


Maybe it's a combination of parameters because if I remove some of them it seems to work. But again, it was working on 21.2.5.


6 Replies 1 reply marked as answer

JB Julien Barach June 14, 2023 05:07 AM UTC

Update : still occurs on 21.2.10



JB Julien Barach June 19, 2023 03:37 PM UTC

Hi,


Any fix planned on this topic ?



BS Buvana Sathasivam Syncfusion Team June 20, 2023 04:22 PM UTC

Hi Julien,


We have checked your code with the sample and found the console error "Error: System.ArgumentNullException: Value cannot be null". We have already considered the reported issue "Combobox component not working properly when using EnableVirtualization as true" as a bug from our end, and the fix for the issue will be included after volume 2, which is expected on the second week of July 2023.

Now you can track the status of the reported issue through the feedback below,

Feedback Link:
https://www.syncfusion.com/feedback/44591/combobox-component-not-working-properly-when-use-enablevirtualization-as-true-with

Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.


Regards,

Buvana S



KP Kokila Poovendran Syncfusion Team July 21, 2023 07:09 AM UTC

Hi Julien Barach,


We have included the fix for the issue "Combobox component not working properly when using EnableVirtualization as true“ 22.1.36”. Therefore, we recommend upgrading to our latest version to resolve the current issue.


Regards,

Kokila Poovendran.


Marked as answer

JB Julien Barach July 23, 2023 09:12 AM UTC

Hi,


I can confirm it's now working on 22.1.39.

Great work guys.


Regards,

JB



SS Shereen Shajahan Syncfusion Team July 24, 2023 05:15 AM UTC

Hi Julien,

Glad to know your issue has been resolved. Please get back to us for assistance in the future.

Regards,

Shereen


Loader.
Up arrow icon