fixed null pointer exception when calling the setInventory method in Marketplace.java