Legacy Knowledge Base
Published Sep. 10, 2025

Unable to Save Object Definition After Deleting a Fragment

Written By

Madhusudan Sharma

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Unable to save an Object definition after deleting a fragment from a Content Page.
  • Reproducing Steps:
    1. Create an object definition with one field.
    2. Add an object entry for this object definition.
    3. Create a content page.
    4. In the content page, add a Content Display fragment.
    5. Configure the Content Display fragment to display the created object entry.
    6. Publish the page.
    7. Edit the page again and remove the fragment altogether.
    8. Publish the page.
    9. Edit the object definition and, without any change, try to save it.

  • The following error is shown when trying to save it:
    [ExceptionMapper:59] Cannot invoke "com.liferay.fragment.model.FragmentEntryLink.getGroupId()" because "fragmentEntryLink" is nulljava.lang.NullPointerException: Cannot invoke "com.liferay.fragment.model.FragmentEntryLink.getGroupId()" because "fragmentEntryLink" is null

Environment

  • DXP 2024.Q3.12

Resolution

  • This is a known bug that has been addressed by LPD-53565

Additional Information

  • If a hotfix is required or any more information on this, please create a support ticket with the patch details.
    The following article will guide you to install the Fixpack/Hotfix in your environment: 
  • Installing Fix Packs and Hotfixes on Liferay DXP
Did this article resolve your issue ?

Legacy Knowledge Base