index 템플릿 null 안전 처리 보강
@10032f9e0d2df706e00656419d65d189ef3ca0b8
--- CHANGELOG_BOOT_JPA.md
+++ CHANGELOG_BOOT_JPA.md
... | ... | @@ -443,3 +443,9 @@ |
| 443 | 443 |
- `/Users/beom/Documents/intellij/cms/FoxeduBaseCMS/base/src/main/resources/application.yml` |
| 444 | 444 |
- 에러 응답 상세 설정 추가 |
| 445 | 445 |
- 하이버네이트/로그4jdbc SQL 로그 레벨 상향 |
| 446 |
+ |
|
| 447 |
+## 추가 변경(26차) |
|
| 448 |
+ |
|
| 449 |
+### 템플릿 오류 방지 |
|
| 450 |
+- `/Users/beom/Documents/intellij/cms/FoxeduBaseCMS/base/src/main/resources/templates/index.html` |
|
| 451 |
+ - `currRootMpm`/`currMpm` null 안전 처리 |
--- base/src/main/resources/templates/index.html
+++ base/src/main/resources/templates/index.html
... | ... | @@ -14,7 +14,7 @@ |
| 14 | 14 |
<th:block th:if="${CURR_URL eq '/msi/emailColctPolicy.do'}">> <span th:text="#{etc.link.emailColctPolicy}"></span></th:block>
|
| 15 | 15 |
<th:block th:if="${CURR_URL eq '/msi/siteMap.do'}">> <span th:text="#{etc.link.sitemap}"></span></th:block>
|
| 16 | 16 |
<th:block> |
| 17 |
- <th:block th:if="${not empty currRootMpm.menuNm}">><span th:text="${currMpm.menuPathByName}"></span></th:block>
|
|
| 17 |
+ <th:block th:if="${currRootMpm != null and not empty currRootMpm.menuNm}">><span th:text="${currMpm != null ? currMpm.menuPathByName : ''}"></span></th:block>
|
|
| 18 | 18 |
</th:block> |
| 19 | 19 |
</th:block> |
| 20 | 20 |
</title> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?