Fix product null pointer bug.