Fix potential NPE when throwing exception
1 file changed