| Summary: | Print a null variable throws eglx.lang.NullValueException | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | fahua jin <jinfahua> |
| Component: | EDT | Assignee: | Jeff Douglas <jeffdouglas> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P1 | CC: | carrollk, jqian, svihovec |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
fahua jin
Brian, could you please advise on this? I talked with Matt about this defect, and he pointed out that the signature for writestdout is: static function writeStdout(text string in); This means that passing a null value to this function would be the equivalent of doing an assignment of that null value to a temporary variable of type "string". This can also be tested using the following example: function main() var1 String; //var1 = null; Compile Error var2 Timestamp?; var1 = var2; end If you run the program above, you get the same exception as listed in the initial Description for this defect. This means that passing 'times' to writestdout is working correctly. During our discussion, we also determined that passing Null to writestdout should throw the same exception. NOTE: There should already be a defect opened for producing a better error message. I have subscribed Jing as well, since the test group will need to verify that this behavior is the same on Java and JavaScript. Kathy will add this into the EUnit tests as part of null testing. - pass in the literal null - pass in the null variable Fixed. A NullValueException will now be throw on writestdout and writestderr. Jeff, I hope this means anywhere a string is used, not just writestdout and writestderr. Verified in 0.7.0.v201110272101 for the test scenario in this defect. |