I had that for a couple of years on my little finger, left hand. Apparently it was caused by a nodule forming on the tendon which then got caught on the tendon sheath causing the trigger reaction. It cleared up of it's own accord a while ago.
Didn't hurt at all.