Skip to content

Commit

Permalink
Merge pull request #5082 from evolvedbinary/hotfix/time-pragma-npe
Browse files Browse the repository at this point in the history
[bugfix] Avoid NPE in exist:time pragma
  • Loading branch information
dizzzz authored Oct 16, 2023
2 parents 6e80c9b + 5096226 commit 9abcd16
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,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

0 comments on commit 9abcd16

Please sign in to comment.