tomaswolf / gerrit-gitblit-plugin

Integrates standard GitBlit (currently 1.7.1) as a repository viewer in Gerrit
Apache License 2.0
22 stars 5 forks source link

Fix NPE in LuceneService that occurs whenever defaultBranch is null #32

Closed chbi closed 5 years ago

chbi commented 5 years ago

That NPE happens for all Gerrit projects, that have no branches, e.g. All-Projects, and no default branch, when generation of a Lucene index is configured globally for all projects by setting:

gitblit.indexbranch=refs/heads/master

in the global Git settings.