added try catch in applet

This commit is contained in:
Pavel Talanov
2012-02-07 15:39:58 +04:00
parent 01b3b13fa1
commit 6822debe90
@@ -38,10 +38,15 @@ public final class K2JSTranslatorApplet extends Applet {
}
}
@NotNull
@Nullable
public BindingContext getBindingContext(@NotNull String programText) {
K2JSTranslator k2JSTranslator = new K2JSTranslator(new TestConfig());
return k2JSTranslator.analyzeProgramCode(programText);
try {
K2JSTranslator k2JSTranslator = new K2JSTranslator(new TestConfig());
return k2JSTranslator.analyzeProgramCode(programText);
} catch (Throwable e) {
reportException(e);
return null;
}
}
@NotNull