Skip to content

Commit

Permalink
vimcolors: prevent NullPointerException (close #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
yugecin committed Nov 13, 2018
1 parent 272daaa commit 320e340
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vimcolors-plugin/resources/META-INF/plugin.xml
@@ -1,11 +1,13 @@
<idea-plugin version="2">
<id>yugecin.intellijvimcolors</id>
<name>IdeaVIM colors</name>
<version>1.0</version>
<version>1.1</version>

<description>Changes editor caret based on active IdeaVIM mode</description>

<change-notes>changelist</change-notes>
<change-notes>
1.1 prevented NullPointerException that caused the IDE to be unresponsive for many actions
</change-notes>

<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description -->
<idea-version since-build="141.0"/>
Expand Down
Expand Up @@ -72,6 +72,9 @@ public void afterActionPerformed(
DataContext dataContext,
AnActionEvent event)
{
if (event == null) {
return;
}
if ("Shortcuts".equals(event.getPresentation().getText())) {
Editor editor = dataContext.getData(PlatformDataKeys.EDITOR);
if (editor != null) {
Expand Down

0 comments on commit 320e340

Please sign in to comment.