Skip to content

Commit

Permalink
[xml mode] Fix null-dereference
Browse files Browse the repository at this point in the history
Closes #502
  • Loading branch information
marijnh committed Apr 18, 2012
1 parent 4365e34 commit 1068a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mode/xml/xml.js
Expand Up @@ -198,7 +198,7 @@ CodeMirror.defineMode("xml", function(config, parserConfig) {
if (Kludges.implicitlyClosed.hasOwnProperty(curState.context.tagName.toLowerCase())) {
popContext();
}
err = curState.context.tagName != tagName;
err = !curState.context || curState.context.tagName != tagName;
}
} else {
err = true;
Expand Down

0 comments on commit 1068a7f

Please sign in to comment.