If there is nothing open, then you get a runtime exception here.