Community
Participate
Working Groups
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
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.