check if quantity is null when autobinding