Skip to content

Commit

Permalink
Merge pull request #52 from dprint/fix-np-in-can-format
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-rushton authored Nov 21, 2022
2 parents 15f7295 + de81ba6 commit 6298e4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# dprint-intellij-plugin Changelog

## [Unreleased]
- Fix null pointer issue in external formatter

## [0.4.0]
- Run dprint after Eslint fixes have been applied
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
pluginGroup=com.dprint.intellij.plugin
pluginName=dprint-intellij-plugin
pluginVersion=0.4.1.beta.1
pluginVersion=0.4.1
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
pluginSinceBuild=221
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class DprintExternalFormatter : AsyncDocumentFormattingService() {

val message =
if (canFormat) DprintBundle.message("external.formatter.can.format", virtualFile.path)
else DprintBundle.message("external.formatter.cannot.format", virtualFile.path)
else DprintBundle.message("external.formatter.cannot.format", virtualFile?.path ?: "no path")

infoLogWithConsole(message, file.project, LOGGER)

Expand Down

0 comments on commit 6298e4e

Please sign in to comment.