Skip to content

NPE on getObjectChangeSet().getChangesForAttributeNamed() #2415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
inad9300 opened this issue May 16, 2025 · 0 comments
Open

NPE on getObjectChangeSet().getChangesForAttributeNamed() #2415

inad9300 opened this issue May 16, 2025 · 0 comments

Comments

@inad9300
Copy link

inad9300 commented May 16, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant