AppletLoader: fix uncaught null pointer exception

This commit is contained in:
kappa1 2011-11-17 21:41:24 +00:00
parent ad7769f9c9
commit 54664ef8cb
1 changed files with 1 additions and 4 deletions

View File

@ -1128,13 +1128,10 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
return object;
} catch (Exception e) {
// failed to read file
e.printStackTrace();
throw e;
} finally {
fis.close();
}
// return null if failed to read file
return null;
}
/**