Skip to content

Commit

Permalink
fix for NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenix124 committed Mar 11, 2024
1 parent f26d9d1 commit abebcf2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import io.qameta.allure.attachment.AttachmentData;
import io.qameta.allure.util.ObjectUtils;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
Expand Down Expand Up @@ -46,7 +47,7 @@ public class HttpRequestAttachment implements AttachmentData {
public HttpRequestAttachment(final String name, final String url, final String method,
final String body, final String curl, final Map<String, String> headers,
final Map<String, String> cookies) {
this(name, url, method, body, curl, headers, cookies, null);
this(name, url, method, body, curl, headers, cookies, Collections.emptyMap());
}

@SuppressWarnings("checkstyle:parameternumber")
Expand Down

0 comments on commit abebcf2

Please sign in to comment.