Content Fragment gives null for empty field post SP17 | Community
Skip to main content
Level 3
July 13, 2023

Content Fragment gives null for empty field post SP17

  • July 13, 2023
  • 2 replies
  • 1328 views

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.

2 replies

Level 2
July 13, 2023

Hi @poovithaselvaraj ! Good evening,

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

Regards,
Shailesh

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
July 13, 2023

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 

Esteban Bustamante
Level 3
July 13, 2023

Hi @estebanbustamante  did you meant this approach ?

Thanks, 

Poovitha Selvaraj

August 23, 2023

Did you get a resolution for this?