Check for null params into constructor added.