Add non-null validation in setProduct() method.