Add guard against null values in extract adapter.
MODIFY
dd-java-agent/instrumentation/rabbitmq-amqp-2.7/src/main/java/datadog/trace/instrumentation/rabbitmq/amqp/TextMapExtractAdapter.java
dd-java-agent/instrumentation/rabbitmq-amqp-2.7/src/main/java/datadog/trace/instrumentation/rabbitmq/amqp/TextMapExtractAdapter.java
@@ -12,9 +12,11 @@ public class TextMapExtractAdapter implements TextMap {
public TextMapExtractAdapter(final Map<String, Object> headers) {
for (final Map.Entry<String, Object> entry : headers.entrySet()) {
+ if (entry != null && entry.getValue() != null) {
map.put(entry.getKey(), entry.getValue().toString());
}
}
+ }
@Override
public Iterator<Map.Entry<String, String>> iterator() {

Add guard against null values in extract adapter.