To reproduce:
1. Switch gamemode to survival
2. Wait for (or set time to) night.
3. Drink a fire resistance potion.
4. Jump in lava and stay there for a bit, so you end up on fire (but you won't take damage because of fire resistance).
5. While on fire, try to sleep in a bed.
The player will be ejected from the bed almost immediately. It seems that the game thinks the player is taking "damage", ejecting it from the bed, even though fire resistance blocks the damage.
Comments 4
Should probably be reopened since it affects all damage which was blocked or prevented in some way, see also MC-118954.
Without Fire Resistance i think intended, With Fire Resistance: probably a bug, btw confirmed for 15w43a