Friday 3 November 2017

c# - Object reference not set to an instance of an object

This simply means you are using an object that is
null. Accessing a member on null is
never valid.



I'm not sure which line is causing
the error. Is it the one that says "Primary Key"? If so, could employees be
null? It should be extremely trivial to find out using the
debugger.



If needed, check for
null before using the object to prevent this
error.

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...