Skip to content

Commit

Permalink
Merge pull request #10 from hyness/npe
Browse files Browse the repository at this point in the history
Fixed NPE
  • Loading branch information
ncjones committed Aug 4, 2015
2 parents af40bdf + 34ad268 commit a9816e8
Showing 1 changed file with 6 additions and 4 deletions.
Expand Up @@ -38,10 +38,12 @@ public EditorConfigEditorActivationHandler(final EditorConfigService editorConfi

@Override
public void editorActivated(final IFile editorFile) {
final EditorFileConfig fileEditorConfig = getEditorFileConfig(editorFile);
System.out.println("Editor activated: " + fileEditorConfig);
for (final ConfigProperty<?> configProperty : fileEditorConfig.getConfigProperties()) {
configProperty.accept(this);
if (editorFile != null) {
final EditorFileConfig fileEditorConfig = getEditorFileConfig(editorFile);
System.out.println("Editor activated: " + fileEditorConfig);
for (final ConfigProperty<?> configProperty : fileEditorConfig.getConfigProperties()) {
configProperty.accept(this);
}
}
}

Expand Down

0 comments on commit a9816e8

Please sign in to comment.