JanusGraph / JanusGraph/janusgraph
Throw an NullPointerException error when querying with valueMap()
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 5.8k
- Forks
- 1.2k
- Avg merge
- 13h 53m
- Merged PRs (30d)
- 6
Description
we have create a schema and add some vertexes in Janusgraph. For example,

However, when we want to adjust the schema structure and remove some PropertyKey like:
mgmt.getPropertyKey('age').remove().
An NullPointerException error was thrown while querying with valueMap() after this operation in the Gremlin console,

So, how to fix this problem? thank you
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the schema setup in the Gremlin console, including removing the `age` PropertyKey with `mgmt.getPropertyKey('age').remove()`, then query with `valueMap()` and capture the full stack trace. Done means the same query no longer throws a NullPointerException after the property is removed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100