Skip to content

Commit

Permalink
Added null checking on message in state.js
Browse files Browse the repository at this point in the history
  • Loading branch information
janjongboom committed Nov 24, 2011
1 parent 6f35290 commit 1f1d5dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/cloud9/ext/state/state.js
Expand Up @@ -26,7 +26,7 @@ sys.inherits(cloud9StatePlugin, Plugin);

// we need to be able to re-publish state when we request that
// use: ide.send({ command: "state", action: "publish" })
if (message.action && message.action === "publish") {
if (message && message.action && message.action === "publish") {
this.publishState();
}

Expand Down

0 comments on commit 1f1d5dc

Please sign in to comment.