[MSHOP-172] NPE after selecting category from keyword cloud component Created: 07/Jan/15  Updated: 08/Jan/15  Resolved: 07/Jan/15

Status: Closed
Project: Magnolia Shop (closed)
Component/s: None
Affects Version/s: 2.0
Fix Version/s: 2.0.1, 2.1

Type: Bug Priority: Major
Reporter: Milan Divilek Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MSHOP-141 Product keywords assigned in the Prod... Closed
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
Date of First Response:

 Description   

Keywords are correctly rendered in keyword cloud component, but after select one of them "0 product found" is displayed on "Keyword Search Result" page.

2015-01-06 13:09:04,936 WARN  p.paragraphs.ShopKeywordSearchResultParagraphModel: Cant get tagged products with tag Family
java.lang.NullPointerException
	at info.magnolia.module.shop.paragraphs.ShopKeywordSearchResultParagraphModel.search(ShopKeywordSearchResultParagraphModel.java:80)
	at info.magnolia.module.shop.paragraphs.ShopParagraphModel.getItems(ShopParagraphModel.java:265)
	at info.magnolia.module.templatingkit.templates.components.AbstractItemListModel.getPager(AbstractItemListModel.java:144)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)

Problem is in info.magnolia.module.shop.paragraphs.ShopKeywordSearchResultParagraphModel where categories are loaded from data workspace, but they are stored in category workspace.



 Comments   
Comment by Roman Kovařík [ 08/Jan/15 ]

Last commit for review: https://git.magnolia-cms.com/gitweb/?p=forge/shop.git;a=commitdiff;h=6203d92e151625022195581fe22f73d8dd859b38

Generated at Mon Feb 12 07:10:02 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.