wait until inventory is not null