C Nullreferenceexception Even Though Setting Value While Returning

C Nullreferenceexception Even Though Setting Value While Returning