Skip to main content
Level 3
Jul 13, 2023 11:02 AM UTC

Content Fragment gives null for empty field post SP17

Hi, 

We have recently upgraded to Service Pack 17 from 7, we started getting null pointer exception from code whenever optional field from content fragment is returning null. Before upgrade we didn't get since empty fields are coming as empty which we have handled in code.

Any suggestions how we can fix it rather than going to every application content fragment and check for validation.

 

Thanks, 

Poovitha S

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

Level 2
Jul 13, 2023 12:08 PM UTC

Hi @poovithaselvaraj ! Good evening,

Can you explain us what is the use-case of CF being used here. 

Regards,
Shailesh

Translate
EstebanBustamante
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
Jul 13, 2023 12:14 PM UTC

Did you perform the actions required in the "Known issues" section regarding Content Fragments? Maybe this can help. https://experienceleague.adobe.com/docs/experience-manager-65/release-notes/release-notes.html?lang=en#known-issues 

Translate
Esteban Bustamante
Level 3
Jul 13, 2023 12:29 PM UTC

Hi @estebanbustamante  did you meant this approach ?

Thanks, 

Poovitha Selvaraj

Translate
Aug 23, 2023 2:26 AM UTC

Did you get a resolution for this?

Translate