If fill or stroke is null, handle it correctly