Code should throw exception(?) but doesn't

Printable View