This is throwing the error
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
This is references images from the media section/images/newsimages.
multimedia picker throwing error
I have tried several ways to make this work but run out of ideas. Currently I have
This is throwing the error Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
This is references images from the media section/images/newsimages.
This works fine using a singlemedia picker.
Has anyone any ideas?
Hi Mark,
You need to check null checking for foreach.
ex:- if (typedMultiMediaPicker != null) { foreach.... }
This will fix any issue if newsImages are null. Alternatively, you can do... if (Model.HasValue("newsImages") { - Then your code snippet. }
Thanks, works great
is working on a reply...