Dreams usually happen when people are asleep, not awake.
One of the following sentences is nonsensical. Which one is it?
A: "he gets a bad dream when he is asleep"
B: "he gets a bad dream when he is awake"