added try catch in applet
This commit is contained in:
@@ -38,10 +38,15 @@ public final class K2JSTranslatorApplet extends Applet {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@Nullable
|
||||||
public BindingContext getBindingContext(@NotNull String programText) {
|
public BindingContext getBindingContext(@NotNull String programText) {
|
||||||
K2JSTranslator k2JSTranslator = new K2JSTranslator(new TestConfig());
|
try {
|
||||||
return k2JSTranslator.analyzeProgramCode(programText);
|
K2JSTranslator k2JSTranslator = new K2JSTranslator(new TestConfig());
|
||||||
|
return k2JSTranslator.analyzeProgramCode(programText);
|
||||||
|
} catch (Throwable e) {
|
||||||
|
reportException(e);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|||||||
Reference in New Issue
Block a user