Debugging why not exception is thrown