fgilde / MudBlazor.Extensions

MudBlazor.Extensions from https://www.mudex.org is a small extension for MudBlazor from https://mudblazor.com
http://www.mudex.org
MIT License
245 stars 20 forks source link

.net maui Blazor hybrid - null object reference #102

Closed whann0205 closed 1 month ago

whann0205 commented 3 months ago

Contact Details

w.hann@hann-edv.at

What happened?

System.NullReferenceException Message=Object reference not set to an instance of an object.

Expected Behavior

I hoped to use that extension with mudblazor.

Screenshots

grafik

Reproduction link

No response

What application type are you referring to?

MAUI

Custom Application Type

No response

MudBlazor.Extension Version

2.0.3

MudBlazor Version

7.5

What .net Version are you using?

.Net8

What browser are you using?

Firefox

Sample Solution

https://github.com/whann0205/MudblazorExt4Maui

Pull Request

No response

Code of Conduct

whann0205 commented 3 months ago

Can you explain whats in that file, looks like a virus download?

fgilde commented 2 months ago

sorry for late response. I will have a look asap at your bug. and for your other question I cant see a file post here, but I also received an email that looks like somebody posted a virus link in github here

fgilde commented 2 months ago

Now I've had a look into your provided demo, and I cant reproduce your bug.

https://github.com/user-attachments/assets/c63b90e9-b23c-4848-b753-a2e12cf6900e

whann0205 commented 2 months ago

Sorry for my delay. Had been on holidays. Hmm. I can see that you do not get any exceptions. I upgraded all nugets to the latest version (as you can see in the attached csproj). Also i upgraded the visual studio to the latest version. Still ... grafik

MudblazorExt4Maui.csproj.zip

Please tell me what else i can provide to you in order to make this work.

fgilde commented 2 months ago

Hard to say but maybe you can firstly paste the full callstack here

whann0205 commented 2 months ago

Sorry i am fairly new in the .net c# world. What do you mean by saying "paste the full callstack"?

fgilde commented 1 month ago

I fixed one reference issues that can cause the error. Can you maybe try it again with the preview package 2.0.6-prev-2410112222-main

<PackageReference Include="MudBlazor.Extensions" Version="2.0.6-prev-2410112222-main" />
whann0205 commented 1 month ago

I have tried it again, but unfortunealy the error persists.

Screenshot 2024-10-12 060227

Also cleared obj and bin first and rebuilt the whole solution to no avail. You can clone the updated solution from (https://github.com/whann0205/MudblazorExt4Maui)

whann0205 commented 1 month ago

Also did test the solution on my mac m1. I tried first to compile with maccatalyst it compiles and runs without any problem! Then i tried with android 20241012_062704 So the problem is definitely related to android not necessarily machine centric!

fgilde commented 1 month ago

I still cant reproduce, can you please test this version?

<PackageReference Include="MudBlazor.Extensions" Version="2.0.6-prev-2410121210-main" />

whann0205 commented 1 month ago

I am happy to tell you that it works with that version!!

fgilde commented 1 month ago

That makes me happy. Great. I create a release later this day and close the issue then afterwards

fgilde commented 1 month ago

Fixed in MudBlazor.Extensions 2.0.6 Nuget