This effect have been seen in 1.12.2 and 1.15. First noticed on a public server and now on my realm. When players tp to another player who is in the nether, end or different world. the xp bar vanishes, but when you collect any xp it returns to the correct amount. You can use an anvil while it's not showing, but not the enchant table until the xp shows again. I've included 2 ss before and after a tp to show the results.
Related issues
Attachments
Comments


Thank you for your report!
We're already tracking this issue at MC-124177, so I will resolve and link this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki