Fixed: Value cannot be null Parameter Name: source

I ran into this message whilst coding an app for Xamarin, but this is definitely an odd way to report the error that's actually happening, but as always there's always one error in a project where you think. What the hell is that? Value cannot be null Parameter Name: source usually happens on an IEnumerable for one reason.

Chances are that the List/IEnumerable you're trying to work on is null or an object within the list is null, but I'd check the former first as it's more likely.

That's it. Short post but an annoying error message for such a simple answer.


Published at

Tags: C#

Luke Alderton

Comments

Post a comment
Sit tight...
We're adding your comment.
Thank you.
Your comment has been added.
There's been a problem.
Please try again later.
Share with
Tags
Latest Comments
By AEndumpbub on Reducing Umbraco memory usage by enabling 32-bit applications
13 Oct 2018, 07:04 AM
By nseo-sw.men on MVC forms in Umbraco
12 Oct 2018, 11:30 AM
By JM on Solved: You need to use a Theme.AppCompat theme (or descendant) with this activity
10 Oct 2018, 13:36 PM
By praveen on Xamarin Forms - Working with threads
5 Oct 2018, 12:05 PM
By Jasonced on MVC forms in Umbraco
27 Sep 2018, 05:41 AM
By Евгения on MVC forms in Umbraco
27 Sep 2018, 02:47 AM
By Wokeq62 on Using SQL DataTables to speed up database performance
25 Sep 2018, 17:28 PM
By AnubisMus on MVC forms in Umbraco
24 Sep 2018, 16:54 PM
Categories
App Development
Event
Game Development
Mapping
Modelling
Programming
Review
Robotics
Tutorial
Web Development