[MGNLSITE-31] SiteI18nContentSupport fails with NPE when no site is defined Created: 13/Aug/15 Updated: 15/Sep/15 Resolved: 17/Aug/15 |
|
| Status: | Closed |
| Project: | Magnolia Site Module |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.0.2 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Milan Divilek | Assignee: | Philip Mundt |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | support | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 0.25d | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||
| Sprint: | Sprint 6 (Basel) | ||||||||
| Story Points: | 2 | ||||||||
| Description |
|
If there is no site set in aggregationState then info.magnolia.module.site.i18n.SiteI18nContentSupport fails with NPE and it also blocks whole admincentral. Aug 13, 2015 10:55:54 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [default] in context with path [/magnoliaAuthor] threw exception java.lang.NullPointerException at info.magnolia.module.site.i18n.SiteI18nContentSupport.getI18nContentSupport(SiteI18nContentSupport.java:69) at info.magnolia.module.site.i18n.SiteI18nContentSupport.determineLocale(SiteI18nContentSupport.java:104) at info.magnolia.module.site.i18n.SiteI18nContentSupport$$EnhancerByCGLIB$$d32e7fa3.determineLocale(<generated>) This can be easily reproducible with site module added into empty webapp. |