Hi Marek, the Revolve command doesn't know how to make a result with an inside void cavity with one single generator curve.
For that you would need to make 2 separate revolves, one for the outside and the 2nd one for the interior and then use boolean difference selecting first the outer shape and then the inner one for the cutting object.