]> source.dussan.org Git - gitblit.git/commit
Guard docs pages against bad URLs
authorFlorian Zschocke <florian.zschocke@devolo.de>
Mon, 11 Nov 2019 15:24:45 +0000 (16:24 +0100)
committerFlorian Zschocke <florian.zschocke@devolo.de>
Mon, 11 Nov 2019 15:24:45 +0000 (16:24 +0100)
commitc4698341d75ef4adc38ebbc3bfbca81bf0ed80dc
tree6b22a891c7ffc71bcaad1c5f105a64f09dbeb6b0
parent9bde5212feeafc17dbbf71d190a9d644512267be
Guard docs pages against bad URLs

If, for example, an external site links to a docs page or a specific
doc page, and the branch that link points to is no longer existing,
an internal error happens due to a NPE.

The NPE is guarded against and a No Docs page is returned.
src/main/java/com/gitblit/wicket/pages/DocPage.java
src/main/java/com/gitblit/wicket/pages/DocsPage.java