fix coverity issue 1121925, Uncaught exception