MSIR.0799 Null object passed as non-allowNull parameter: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
(Automatically generated page update)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template:MSIR.0799 Null object passed as non-allowNull parameter subtitle}}
A <tt>Null</tt> was specified as an argument in a method invocation but the method declaration did not specify <var>AllowNull</var> for the corresponding parameter. If there are good reasons to be passing a null object to the method, correct the method declaration to indicate <var>AllowNull</var>. Otherwise, correct the method invocation to pass an appropriate object.  
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>
<p class="note"><b>Note:</b> 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-<var>AllowNull</var> argument will result in request cancellation.
</p>


[[Category:Sirius Mods messages]]
{{Template:MSIR.0799 footer}}
[[Category:MSIR.0600 - MSIR.0799]]

Latest revision as of 23:34, 3 March 2017

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.

Note: 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.


Message attributes:

RETCODEO=0Sets online return code
RETCODEB=4Sets batch (single user) return code
CLASS=EError class; the message can be suppressed with the X'04' bit setting of the MSGCTL parameter
AUDITERWrites the message with line type ER to the audit trail
COUNTIncrements the error count (ERCNT) parameter
ECHODisplays the line that caused the error

Back to list of messages