Skip to content

NPE on getObjectChangeSet().getChangesForAttributeNamed() #2415

Open
@inad9300

Description

@inad9300

Describe the bug

I encountered the following null pointer exception:

Cannot invoke "org.eclipse.persistence.internal.sessions.ObjectChangeSet.getChangesForAttributeNamed(String)" 
because the return value of "org.eclipse.persistence.internal.descriptors.changetracking.AttributeChangeListener.getObjectChangeSet()" is null
  • EclipseLink version: 4.0.5
  • Java/JDK version: 21

The following line seems most likely to be the culprit:

ChangeRecord record = (ChangeRecord) ((AttributeChangeListener)listener).getObjectChangeSet().getChangesForAttributeNamed(mapping.getAttributeName());

Unfortunately, I have no further details than this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions