[MGNLCAT-22] NullPointerException from CategoryOverviewModel.getPager() when category does not exist Created: 27/Sep/10 Updated: 29/Nov/10 Resolved: 07/Oct/10 |
|
| Status: | Closed |
| Project: | Magnolia Categorization Module |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.1.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Bert Leunis | Assignee: | Ondrej Chytil |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||
| Issue Links: |
|
||||
| Template: |
|
||||
| Patch included: |
Yes
|
||||
| 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
|
||||
| Date of First Response: | |||||
| Description |
|
When a category does not exist, a NullPointerException is thrown. See for example: http://demoauthor.magnolia-cms.com/demo-project/service/category.Family-blabla.html. The CategoryOverviewModel.getPager() uses info.magnolia.module.categorization.util.CategoryUtil.getContentByCategory(CategoryUtil.java:73), where the null pointer happens. |
| Comments |
| Comment by Bert Leunis [ 28/Sep/10 ] |
|
This patch should prevent the nullpointerexceptions. |
| Comment by Ondrej Chytil [ 07/Oct/10 ] |
|
Thanks for patch Bert. |