A few licks from a coffee cup won't hurt him at all. If he had eaten a whole bag of coffee beans, that would be another matter!

My grandfather's bulldog shared coffee and doughnut with him every night before bed with no ill results, but he WAS a bulldog, and would eat all sorts of awful stuff!