Check that products_id is not null and is a valid integer inside class constructor.