| Index: lib/compiler/implementation/ssa/builder.dart
|
| diff --git a/lib/compiler/implementation/ssa/builder.dart b/lib/compiler/implementation/ssa/builder.dart
|
| index 1f3039203cdc5566b79e81fdabd58b7691caeecb..abcada3b388b2c058cac460201ec69384a6d23b7 100644
|
| --- a/lib/compiler/implementation/ssa/builder.dart
|
| +++ b/lib/compiler/implementation/ssa/builder.dart
|
| @@ -3672,8 +3672,10 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
|
| void visitThen() {
|
| CatchBlock catchBlock = link.head;
|
| link = link.tail;
|
| - localsHandler.updateLocal(elements[catchBlock.exception],
|
| - unwrappedException);
|
| + if (catchBlock.exception !== null) {
|
| + localsHandler.updateLocal(elements[catchBlock.exception],
|
| + unwrappedException);
|
| + }
|
| Node trace = catchBlock.trace;
|
| if (trace != null) {
|
| pushInvokeHelper1(interceptors.getTraceFromException(), exception);
|
|
|