Accidentally hurt tummy

I accidentally hit my stomach with the corner of my dresser It wasn't a really hard hit but it did hurt .I just wanted to know when should I go to the dr or hospital ?I'm just worried if the hit hurt the baby or the baby and I are okay .