#4 Added nullcheck for activity provided in constructor