Round 4 Extended 4

changes for handling null in getAllAdvertisements service.