You could try and talk with your friend as open communication is always a good idea. If you find out that you have done something to offend them, then this gives you the opportunity to explain the situation, apologise and try to rectify it if you think that is reasonable. If they refuse to talk to you, then you should accept that this is maybe not your problem, accept that you are powerless to do anything about it, and move on. This is easier said than done of course.