Quote:
Originally Posted by -Fáng-
Korvac's
|
Last time I checked, names or things that end with s won't get a double s but a '. like "His brothers' car is ready."(two brothers :P) so it would be " Korvacs' "
This error might not occur because the array is set as null and not as new array().
This error occurs because when a character is loading, it also loads the warehouses one by one, doing wharr = new ArrayList() after it finishes the last one, and if one errors, the others will remain null, which when trying:
buffer = new byte[xx + Warehouse.Count + 8] will result into a null exception.
Even setting ArrayList Warehouse = new ArrayList(), once it hits that switch, it will make it back null, which will still lead to that null exception.
To make it go away, just do something like:
public GameClient(...)
{
...
Warehouses.TCWarehouse = new ArrayList();
Warehouses.PCWarehouse = new ArrayList();
Warehouses.ACWarehouse = new ArrayList();
Warehouses.DCWarehouse = new ArrayList();
Warehouses.BIWarehouse = new ArrayList();
//Warehouses.SWarehouse = new ArrayList();//Stone wh? Not added? Dunno myself lol
}
and it shall work like a charm.