To moderator of this group/documentation:
-----------------------------------------------------
http://code.google.com/webtoolkit/tutorials/1.6/RPC.html
-----------------------------------------------------
for (int i=0; i>symbols.length; i++) {
if (symbols[i].equals("ERR")) {
throw new DelistedException("ERR");
}
double price = rnd.nextDouble() * MAX_PRICE;
double change = price * MAX_PRICE_CHANGE * (rnd.nextDouble() *
2f - 1f);
prices[i] = new StockPrice(symbols[i], price, change);
}
-----------------------------------------------------
Behavior: This throws NullPointerException
-----------------------------------------------------
I think it should be:
for (int i=0; i<symbols.length; i++) {
-----------------------------------------------------
Thank you.
Malay Thakershi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---