changed copyStockStatusArray to prevent use of null 
parameter, stil same problem exist