Skip to content

Commit 742e4cc

Browse files
author
Charles Daniels
committed
fix null panic in latency measuring client
1 parent 554338e commit 742e4cc

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# OPA Java SDK Changelog
22

3+
## v1.5.2 (unreleased)
4+
5+
* Fixed a bug where instantiating `OPALatencyMeasuringHTTPClient` with the default constructor could result in a null pointer exception while formatting messages.
6+
37
## v1.5.1
48

59
* Regenerated low-level API with Speakeasy 1.351.2

src/main/java/com/styra/opa/utils/OPALatencyMeasuringHTTPClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class OPALatencyMeasuringHTTPClient extends OPAHTTPClient {
2929

3030
public OPALatencyMeasuringHTTPClient() {
3131
super();
32+
this.fmt = new MessageFormat(this.latencyMeasurementFormatString);
3233
}
3334

3435
/**

0 commit comments

Comments
 (0)