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 committed Nov 27, 2023
1 parent 8ab4e48 commit c136802
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 c136802

Please sign in to comment.