A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Can't see anything wrong there. Double check that imageFile isn't null and same for UrlResolver object...
I have been struck at a point to get the URL for an image file, so as to hyperLink the file dynamically.
I was trying UrlResolver.Current.GetUrl(imageFile.ContentLink) .
imageFile.ContentLink has valid reference, but while tryig to get the URL for this reference throws a null pointer exception.
System.NullReferenceException: Object reference not set to an instance of an object.
I am working with EpiServer 9.2.0.0