Hello, thank you for consulting with us for your problem. The bump which you are mentioning can be because of infection or allergy
or any trauma, but it is not painful it means it is not infectious. if it does not get healed within 1 week it will be much better to visit a dentist
nearby for examination of the bump.