Skip to content

Commit

Permalink
Handle null assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
artpar committed Dec 21, 2023
1 parent 67d0f0a commit 6019e5a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<artifactId>unlogged-sdk</artifactId>
<groupId>video.bug</groupId>
<version>0.1.32</version>
<version>0.1.34</version>

<properties>
<maven.compiler.source>8</maven.compiler.source>
Expand Down Expand Up @@ -349,10 +349,10 @@
<pattern>net.bytebuddy</pattern>
<shadedPattern>selogger.net.bytebuddy</shadedPattern>
</relocation>
<relocation>
<pattern>net.openhft</pattern>
<shadedPattern>selogger.net.openhft</shadedPattern>
</relocation>
<!-- <relocation>-->
<!-- <pattern>net.openhft</pattern>-->
<!-- <shadedPattern>selogger.net.openhft</shadedPattern>-->
<!-- </relocation>-->
<relocation>
<pattern>com.fasterxml.jackson</pattern>
<shadedPattern>selogger.com.fasterxml.jackson</shadedPattern>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/unlogged/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ public class Constants {

private Constants() {}

public static final String AGENT_VERSION = "0.1.32";
public static final String AGENT_VERSION = "0.1.34";
}
4 changes: 4 additions & 0 deletions src/main/java/io/unlogged/atomic/AssertionEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ public static AssertionResult executeAssertions(
AtomicAssertion assertion, JsonNode responseNode
) {
AssertionResult assertionResult = new AssertionResult();
if (assertion == null) {
assertionResult.setPassing(true);
return assertionResult;
}

AssertionType assertionType = assertion.getAssertionType();

Expand Down

0 comments on commit 6019e5a

Please sign in to comment.