Skip to content

Commit 47ef070

Browse files
committed
Updating thrown exception
1 parent b92a5e3 commit 47ef070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opamp-client/src/main/java/io/opentelemetry/opamp/client/internal/OpampClientBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ public OpampClientBuilder setEffectiveConfigState(State.EffectiveConfig effectiv
376376

377377
public OpampClient build() {
378378
if (service == null) {
379-
throw new NullPointerException(
379+
throw new IllegalStateException(
380380
"The request service is not set. You must provide it by calling setRequestService()");
381381
}
382382
List<KeyValue> protoIdentifyingAttributes = new ArrayList<>();

0 commit comments

Comments
 (0)