Skip to content
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

NullPointerException in org.eclipse.store.storage.restadapter.types.ObjectDescription.resolveReferences #363

Open
hrstoyanov opened this issue Jan 20, 2025 · 0 comments

Comments

@hrstoyanov
Copy link

Environment Details

  • EclipseStore Version: 2.1.1
  • JDK version: 22
  • OS: MacOs
  • Used frameworks: none

Describe the bug

As you can see in the screenshot, It is possible to get NULL for values object array member of ObjectDescription which causes an NPE (java.lang.NullPointerException: Cannot read the array length because "array" is null) for line159 (high-lighted by the debugger)

Caused by: java.lang.NullPointerException: Cannot read the array length because "array" is null
	at java.base/java.util.Arrays.stream(Arrays.java:5487)
	at org.eclipse.store.storage.restadapter.types.ObjectDescription.resolveReferences(ObjectDescription.java:159)
	at org.eclipse.store.storage.restadapter.types.StorageRestAdapter$Default.getObject(StorageRestAdapter.java:112)

Image

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