Skip to content

Commit

Permalink
🐛 : corrects NPE on sidebar when build information is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
juwit committed Aug 30, 2019
1 parent f84f204 commit eaefe72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/templates/layout/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ <h4>Menu</h4>
</div>
</div>
<div class="sidebar-footer">
<span><i class="fas fa-tag"></i> <span th:text="${info.build.version}"></span></span>
<span th:if="${info[build] != null}"><i class="fas fa-tag"></i> <span th:text="${info.build.version}"></span></span>

<span><i class="fab fa-github"></i> <span th:text="${info.git.commit.id}"></span></span>
<span th:if="${info[git] != null}"><i class="fab fa-github"></i> <span th:text="${info.git.commit.id}"></span></span>
</div>
</nav>
<!-- end sidebar -->
Expand Down

0 comments on commit eaefe72

Please sign in to comment.