Painful nipple after 2 months of BF

When nursing, my right nipple hurts so badly. There is a tiny white dot in the center of the nipple. Could this be the reason for the pain? What is it and how do you treat it? I’ve been breastfeeding for 2 months and haven’t had any problems until now.