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

CREATE VERTEX with a specific value in a property throws NullPointerException #4246

Closed
marcelooliveira opened this issue May 29, 2015 · 2 comments
Assignees
Labels

Comments

@marcelooliveira
Copy link

We are trying to create vertices for a range of values in our FeedUser vertex. Strangely, some specific values in our FeedUser.UserId property make the OrientDB Studio
complain about a NullPointer exception during the create process, while other values are inserted without problem. The index is NOTUNIQUE, so the vertices should accept the same UserId property value in many inserts. Is it a known issue? Thanks in advance.

Steps to reproduce the issue:

CREATE VERTEX FeedUser SET UserId = 1207, LastActionDate = '2015-05-29 16:05:00'
^-- successfully inserts one vertex in the database with UserId = 1207

CREATE VERTEX FeedUser SET UserId = 12070, LastActionDate = '2015-05-29 16:05:00'
^-- fails with error: "com.orientechnologies.orient.core.index.OIndexException: Error during insertion of key in index --> java.lang.NullPointerException". Can't insert UserId=12070

We defined the FeedUser vertex with the following structure:

Properties:

FeedId INTEGER NOT NULL
FeedUserId INTEGER NULL
LastActionDate DATE NULL
UserId INTEGER NULL

Indexes:

Name Type Properties Engine Actions
FeedUser.UserId NOTUNIQUE_HASH_INDEX ["UserId"] SBTREE

@lvca
Copy link
Member

lvca commented Sep 22, 2015

This problem seems old. Did you try with v2.1.2?

@lvca lvca self-assigned this Sep 22, 2015
@marcelooliveira
Copy link
Author

It's no longer an issue, thank you luca.

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

No branches or pull requests

3 participants