Expand my Community achievements bar.

Content Fragment gives null for empty field post SP17

Avatar

Level 3

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

5 Replies

Avatar

Level 3

Hi @PoovithaSelvaraj ! Good evening,

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

Regards,
Shailesh

Avatar

Community Advisor

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=... 



Esteban Bustamante

Avatar

Level 3

Hi @cronind ,

Resolution that we discussed above has been applied already as part of Adobe during upgrading. 
Post that also we got this null pointer issue in CF referencing, we fixed by adding checks and changing code logic.
We didn't get such issues after that. 

 

Thanks for asking :).

Poovitha S