In the midst of nightmare, if one were to know that it is just a dream, then whatever fear or sadness felt then would vanish in an instant. If one can attain realization of emptiness, all suffering in life will also gradually disappear.