Fixed nullPointerException in InventoryConverter

Fixed nullPointerException in InventoryConverter.java:160