It could be a simple issue of urethritis which is very common. To cover your bases, I'd ask the doctor for a round of antibiotics. But know that the more you think about things like this, the more you can create discomfort by hyper focusing.
Also have you had your prostate checked? That's another reason men get penis pain.