In compiled mode.
String s1 = null;
String s2 = null;
s2 = s1 + s2;
Window.alert("null + null = " + s2);
result:
"null + null = nullnull"
But this piece of code:
public String getValue(DocListsInfo object) {
String s1 = object.getUrlForApplication();
Window.alert("2: " + s1);
String s2 = object.getEodLink();
Window.alert("3: " + s2);
String s3 = s1 + s2;
Window.alert("4: " + s3);
return s3;
}
=>
// compiled javascript:
function NUb(a){var b,c,d;b=a.q;$wnd.alert('2: '+b);c=a.g;$wnd.alert('3: '+c);d=b+c;$wnd.alert('4: '+d);return d}
returns 0 if both getters return null.