-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.NullReferenceException on Show (11.1.0) #477
Comments
@Wandtket Can you please attach a sample project? |
@thudugala I can't seem to reproduce it in a sample project which is a little frustrating, Sorry for the delay, here's the output from the NullReferenceException:
|
I had thought since my original project was created on .net 6 something might've been keeping it from working properly, I created a new project starting on .net 8 and it worked fine, then I fired up the old project and for some reason it started working properly. Which is strange, I uninstalled the app from the emulator and started from scratch. Everything appears to be working fine now, sorry for the trouble. |
I didn't notice this error while developing or in released application that I installed, but it is reported by Android Play Console under Android Vitals ! It's: It affects any Android versions, and mostly Samsung and Xiaomi phones From the error message, probably something happening when receiving Image attached to the notification ? |
I updated my project from .NET 7.0 to 8.0, and started getting these errors on version 11.1.2. Going back to version 10.1.8 fixed it but introduced other problems with permissions so I had to go back to the latest version. At first I got the "[System.NullReferenceException]: Object reference not set to an instance of an object"-exceptions when trying to use Cancel or Clear methods when running the code in Visual Studio on an Emulator. I could'nt figure out what it was and it wasn't until CrashLytics came onboard that it mentioned this exact error so I finally could see what was the main cause. The code works fine when running Debug or Release from Visual Studio. But when added to Google Play it crashes the app with the error:
The hardest part about this is, that it seems to work fine locally but having issues after Release on Google Play, so creating a local project for testing would'nt really have any purpose. @thudugala Can the issue be re-opened? |
Okay, so I've tried a few things more without success. I added the latest System.Text.Json to the project. HasValue: false So I can't see an issue with the data. But the error still makes the app crash exactly when the Cancel or Clear method are called. |
Well, I finally got it working but how exactly eludes me. I'll list the things I can remember I did or tried, so hopefully it can help someone else with the issue:
Any or several of these might have helped solve the issue. Personally I think it was the latter. |
Had this issue as well, rolled back to version 10.1.8 works for now but will investigate further when we need to update this packages again. |
When showing a notification the notification will pop as expected but then throw a System.NullReferenceException immediately afterwards.
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: