Skip to content

Commit

Permalink
fix NPE when omitting plugin repository
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 authored and DRSchlaubi committed Jun 23, 2024
1 parent 12aa295 commit 793886e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ class PluginManager(val config: PluginsConfig) {

var repository = declaration.repository
?: if (declaration.snapshot) config.defaultPluginSnapshotRepository else config.defaultPluginRepository
repository =
if (declaration.repository!!.endsWith("/")) declaration.repository!! else declaration.repository!! + "/"
repository = if (repository.endsWith("/")) repository else "$repository/"
Declaration(fragments[0], fragments[1], fragments[2], repository)
}

Expand Down

0 comments on commit 793886e

Please sign in to comment.