Skip to content

NullPointerException: job services #2543

@ChristianGruen

Description

@ChristianGruen

A registered job that is called in intervals may lead to a NullPointerException:

result.value = qp.value().materialize(d -> d == null || d.inMemory(), null, qp.qc);

java.lang.NullPointerException: Cannot read field "qc" because "this.qp" is null
    at org.basex.core.jobs.QueryJob.run(QueryJob.java:210)
    at java.base/java.lang.Thread.run(Thread.java:1583)
java.lang.NullPointerException: Cannot read field "qc" because "this.qp" is null
    at org.basex.core.jobs.QueryJob.run(QueryJob.java:210)
    at java.base/java.lang.Thread.run(Thread.java:1583)

The number of NPEs pile up when the requests runs for a longer time.

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