Skip to content

Commit 6cdd956

Browse files
committed
suggestions
1 parent 1a5364b commit 6cdd956

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

communication/src/main/java/datadog/communication/ddagent/DDAgentFeaturesDiscovery.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ private boolean processInfoResponse(State newState, String response) {
232232
try {
233233
Map<String, Object> map = RESPONSE_ADAPTER.fromJson(response);
234234
final Object endpointObj = map.get("endpoints");
235-
if (endpointObj == null) {
235+
if (!(endpointObj instanceof List)) {
236236
log.debug("Bad response received from the agent. Ignoring it.");
237237
return false;
238238
}

0 commit comments

Comments
 (0)