Skip to content

Commit

Permalink
Check worker not null on Debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed May 30, 2016
1 parent 854892d commit 21e53ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/containers/Debugger/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ export default class Debugger extends Component {
setStatusToTitle('waiting', INITIAL_MESSAGE);
} else {
// Otherwise, pass through to the worker.
this.props.debugger.worker.postMessage(object);
const { worker } = this.props.debugger;
if (worker) {
worker.postMessage(object);
}
}
};

Expand Down

0 comments on commit 21e53ad

Please sign in to comment.