Skip to content

Commit

Permalink
Fix null pointer exception 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzewoo committed Apr 14, 2020
1 parent fdf508c commit 40b0bc0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ object Toolkits {
}

fun isMarkdownFile(editor: Editor?): Boolean {
if (null = editor) {
if (null == editor) {
return false
}
return (editor is EditorEx && editor.virtualFile.fileType.name.toLowerCase() == "markdown")
Expand Down

0 comments on commit 40b0bc0

Please sign in to comment.