| Summary: | NullPointerException on Plus and Concat in EList | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | broy2 | ||||
| Component: | EDT | Assignee: | Project Inbox <edt.javascriptgen-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | blocker | ||||||
| Priority: | P1 | CC: | hjiyong, pfyu, pharmon, svihovec | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Does this testcase fail when generating Java as well? If not, this should probably go to the JS Gen component. I am routing this to JSGen, since this is working in JavaGen. The "+" operator to concatenate elements to a list is being removed (will give errors in validation). The only valid operator for concatenation to an array is "::", and the only valid concatenation assignment is "::=" OK, changed the program to use ::.
Still have errors in the editor which prevent testing in Java and JS.
program plusProb type BasicProgram {}
myNames string[] =["Carolina", "State", "Duke"];
element string = "Meredith";
newList string[];
function main()
newList = myNames :: element;
end
end
IWN.JavascriptGen.9998.e 8/188 Exception occurred: java.lang.NullPointerException
IWN.JavascriptGen.9999.e 8/188 Stack Trace: java.lang.NullPointerException
*** Bug 362629 has been marked as a duplicate of this bug. *** Created attachment 206380 [details]
fix
This is a regression of bug 362155. Widget qualifier has to be handled differently. Verified in 20111103 build. |
NPE on newList = myNames + element; program plusProb type BasicProgram {} myNames string[] =["Carolina", "State", "Duke"]; element string = "Meredith"; newList string[]; function main() newList = myNames + element; end end Multiple markers at this line IWN.JavascriptGen.9998.e 8/188 Exception occurred: java.lang.NullPointerException IWN.JavascriptGen.9999.e 8/188 Stack Trace: java.lang.NullPointerException