[ECOMMERCE-375] Exception is thrown after click on "cross" button for removing link field value when editing "Product detail" component Created: 22/Mar/21  Updated: 31/Mar/21  Resolved: 30/Mar/21

Status: Closed
Project: E-commerce
Component/s: None
Affects Version/s: 1.2.3
Fix Version/s: 1.2.4

Type: Bug Priority: Neutral
Reporter: Antonín Juran Assignee: Antonín Juran
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 1d 0.5h
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2021-03-22 at 14.59.00.png     PNG File Screenshot 2021-03-22 at 14.59.29.png     File stacktrace.rtf    
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: Commerce fixes and improvements 1.2.4 - 1.2.5
Sprint: Add-Ons 60
Story Points: 3

 Description   

Steps to reproduce

  1.  Execute edit action on "Product detail" component
  2.  Click on the "cross" button for removing link field value
  3.  Exception is thrown see attached stacktrace.rtf file.

Expected result

Do not throw an exception

 

Code snippet exception 

Caused by: java.lang.NullPointerException

at info.magnolia.ecommerce.app.catalogs.chooser.CategorySelectFieldSupport$1.convertToModel(CategorySelectFieldSupport.java:66) ~[magnolia-ecommerce-ui-1.2.4-SNAPSHOT.jar:?]

at info.magnolia.ecommerce.app.catalogs.chooser.CategorySelectFieldSupport$1.convertToModel(CategorySelectFieldSupport.java:63) ~[magnolia-ecommerce-ui-1.2.4-SNAPSHOT.jar:?]

at com.vaadin.data.Converter$2.lambda$convertToModel$5daf174e$1(Converter.java:167) ~[vaadin-server-8.12.4.jar:8.12.4]


Generated at Mon Feb 12 01:43:27 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.