resolved the problem with ideacomments and idearelations that might be null