If you run this from a debugger and reproduce the exception, the debugger will snap and tell you exactly which line of code the exception is occurring on.
If you know how to use a debugger (specifically the watch window), you'll also probably see why the exception is happening.
But let's start with just narrowing it down. Run this again, but through your IDE's debugger. Then let us know which line is the culprit.