8164748: Edit pad crashes when calling function

Reviewed-by: jlaskey
This commit is contained in:
Athijegannathan Sundararajan 2016-08-25 22:23:59 +05:30
parent 200608b4c0
commit 87f1cd1d73

View File

@ -172,7 +172,7 @@ public final class Main extends Shell {
final Consumer<String> evaluator = str -> {
// could be called from different thread (GUI), we need to handle Context set/reset
final Global _oldGlobal = Context.getGlobal();
final boolean _globalChanged = (oldGlobal != global);
final boolean _globalChanged = (_oldGlobal != global);
if (_globalChanged) {
Context.setGlobal(global);
}