NMS-6103: Linkd is able to manage duplicated ip

Fixed two captured null pointer exception