Fixed inventory result error causes null pointer exception