Skip to content

Commit

Permalink
Fix NPE when updating plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed May 22, 2024
1 parent 6148b58 commit 9a6d0d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class PluginUpdater(private val pluginLoader: PluginLoader, repos: List<UpdateRe
}
val lastVersion = lastRelease.version
val installedPlugin = pluginLoader.getPlugin(plugin.id)
if (installedPlugin != null && BUNDLED_PLUGINS in installedPlugin.pluginPath.absolutePathString()) continue
if (installedPlugin == null || BUNDLED_PLUGINS in installedPlugin.pluginPath.absolutePathString()) continue
val installedVersion = installedPlugin.descriptor.version

LOG.debug { "Update plugin '${plugin.id}' from version $installedVersion to version $lastVersion" }
Expand Down

0 comments on commit 9a6d0d6

Please sign in to comment.