Skip to content

Commit

Permalink
Fix potential NPE in ServerRecorder.java
Browse files Browse the repository at this point in the history
This is an 3.15 LTS specific fix for quarkusio#44976
  • Loading branch information
geoand committed Jan 24, 2025
1 parent 7e37d3c commit 32fa911
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ public void startPeriodEvent() {

@Override
public void endPeriodEvent() {

if(durationEvent == null) {
return;
}
durationEvent.end();

if (durationEvent.shouldCommit()) {
Expand Down

0 comments on commit 32fa911

Please sign in to comment.