c# - ArgumentNullException was unhandled, out of the blue -


i have been working on project on , off, haven't touched 2 months, today came , unable run due error.

ienumerable<mediatitle> query = mediatitlecollection.oftype<filmmedia>(); 

the debugger stops on line , gives error described in title along

value cannot null. parameter name: source

its frustrating since code working 100% before , dominated error. have tried clean solution without luck.

enumerable.oftype raise exception if collection (mediatitlecollection, in case) null.

its frustrating since code working 100% before , dominated error. have tried clean solution without luck.

you should debug application, , location mediatitlecollection supposed set. being set null or not being initialized properly.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -