Has this ever happend to anyone?
It happens to most people. Very few ideas are unique. In fact most aren't.
I'm also looking to avoid legal problems.
Is your product/service classed as competition or do they provide a product/service that's copyrighted?