It didn't work without this change -- it just threw an exception and caught it and printed a stack trace and continued.