MSIR.0799 Null object passed as non-allowNull parameter: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
(Automatically generated page update) |
||
Line 1: | Line 1: | ||
A <tt>Null</tt> was specified as an argument in a method invocation but the method declaration did not specify <tt>AllowNull</tt> for the corresponding parameter. If there are good reasons to be passing a null object to the method, correct the method declaration to indicate <tt>AllowNull</tt>. Otherwise, correct the method invocation to pass an appropriate object. <blockquote>Specifying an object that will be null at evaluation time will only shift the problem from a compile-time error to an evaluation time error since a null object passed as a non-<tt>AllowNull</tt> argument will result in request cancellation.</blockquote> | A <tt>Null</tt> was specified as an argument in a method invocation but the method declaration did not specify <tt>AllowNull</tt> for the corresponding parameter. If there are good reasons to be passing a null object to the method, correct the method declaration to indicate <tt>AllowNull</tt>. Otherwise, correct the method invocation to pass an appropriate object. <blockquote>Specifying an object that will be null at evaluation time will only shift the problem from a compile-time error to an evaluation time error since a null object passed as a non-<tt>AllowNull</tt> argument will result in request cancellation.</blockquote> | ||
[[Category:Sirius Mods | [[Category:Sirius Mods messages]] |
Revision as of 17:59, 19 April 2013
A Null was specified as an argument in a method invocation but the method declaration did not specify AllowNull for the corresponding parameter. If there are good reasons to be passing a null object to the method, correct the method declaration to indicate AllowNull. Otherwise, correct the method invocation to pass an appropriate object.
Specifying an object that will be null at evaluation time will only shift the problem from a compile-time error to an evaluation time error since a null object passed as a non-AllowNull argument will result in request cancellation.