This is a safe combination. Caffeine (a xanthine derivative) and ibuprofen (an NSAID) do not have any interaction that I have ever heard of in my experiences in the field of pharmacy.
Plain ibuprofen tablets (Advil, Motrin) do not contain caffeine. Some products specially marketed for migraine headaches or menstrual discomfort may contain caffeine. Read product labels -- caffeine...