Skip to content

Commit

Permalink
Merge pull request #5081 from evolvedbinary/6.x.x/hotfix/time-pragma-npe
Browse files Browse the repository at this point in the history
[6.x.x] Fix an NPE in exist:time pragma
  • Loading branch information
dizzzz authored Oct 16, 2023
2 parents 5818c56 + bd67ba8 commit 4a94b68
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,12 @@ public void after(final XQueryContext context, final Expression expression) thro

@Override
public void resetState(final boolean postOptimization) {
if (timing != null && options.measurementMode == MeasurementMode.MULTIPLE) {
logMultipleMeasurement();
if (timing != null) {
if (options.measurementMode == MeasurementMode.MULTIPLE) {
logMultipleMeasurement();
}
this.timing.reset();
}
this.timing.reset();
}

/**
Expand Down
5 changes: 5 additions & 0 deletions extensions/indexes/range/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@
<version>${lucene.version}</version>
</dependency>

<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</dependency>

<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
Expand Down

0 comments on commit 4a94b68

Please sign in to comment.