© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
13 replies
Al3mid3x

✅ NullReferenceException for a array of bytes (image)

hey everybody i'm new to ASP.NET i was doing a small ecommerce project and i want to add a default picture for the product if not exists but i keep getting null error on the if statement that checks if its null.

here is a picture of the error keeps appearing in visual studio
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Get array of bytes from DLL
C#CC# / help
3y ago
❔ Json Deserialiser throws NullReferenceException when deserializing an array
C#CC# / help
3y ago
NullReferenceException but checking for Null?
C#CC# / help
2y ago
Possible NullReferenceException
C#CC# / help
11mo ago