[LIVECOPY-153] NPE when user tries to livecopied component Created: 25/Jul/19  Updated: 03/Dec/20  Resolved: 12/Aug/19

Status: Closed
Project: Live Copy
Component/s: None
Affects Version/s: 3.1
Fix Version/s: 3.1.1

Type: Bug Priority: Critical
Reporter: Ilgun Ilgun Assignee: Trung Luu
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: 0d
Time Spent: 1d 3h
Original Estimate: Not Specified

Issue Links:
duplicate
is duplicated by LIVECOPY-160 LiveCopyAwareResurfaceFormViewImpl ca... 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
Release notes required:
Yes
Date of First Response:
Epic Link: Live Copy improvements
Sprint: Add-Ons 18
Story Points: 3

 Description   

It happens in the row section, feel free to ping jschulte for more information on how to reproduce the bug.

 

The initial assumption is that code relies on the transformer being present but it sometimes just is not there (also potentially new UI framework topic, since Transformers are gone now)

 

https://git.magnolia-cms.com/projects/SERVICES/repos/services-demos-corporate/browse
https://git.magnolia-cms.com/projects/SERVICES/repos/corporate-website-template/browse

 

 

Stacktrace:

Caused by: java.lang.NullPointerException
   at info.magnolia.livecopy.editor.LiveCopyAwareResurfaceFormViewImpl.fieldLayout(LiveCopyAwareResurfaceFormViewImpl.java:71) ~[magnolia-livecopy-3.1.jar:?]



 Comments   
Comment by Jan Schulte [ 25/Jul/19 ]

The problem arises if a component has subareas. This is a sample definition from one failing component.

 
title: "* Section (Row)"
renderType: freemarker
templateScript: /corporate-website-template/templates/components/section/section.ftl
dialog: corporate-website-template:components/section

areas:
  templateScript: /corporate-website-template/templates/areas/column.ftl
  dialog: corporate-website-template:areas/column
  availableComponents:
  teasersList:
    id: corporate-website-template:components/appLists/teasers/teasers
 

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