Skip to content

Commit 59f7367

Browse files
authored
Merge pull request #29 from securenative/dev
Fix creating context from request
2 parents 0257f50 + b865da6 commit 59f7367

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ hs_err_pid*
2828
/.project
2929
*.iml
3030
.idea
31+
.vscode
32+
.DS_Store

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>com.securenative.java</groupId>
77
<artifactId>securenative-java</artifactId>
88
<packaging>jar</packaging>
9-
<version>0.4.7</version>
9+
<version>0.4.8</version>
1010
<url>https://github.com/securenative/securenative-java</url>
1111

1212
<name>${project.groupId}:${project.artifactId}:${project.version}</name>
@@ -65,7 +65,7 @@
6565
</execution>
6666
</executions>
6767
</plugin>
68-
68+
6969
<!-- Javadoc plugin -->
7070
<plugin>
7171
<groupId>org.apache.maven.plugins</groupId>
@@ -80,7 +80,7 @@
8080
</execution>
8181
</executions>
8282
</plugin>
83-
83+
8484
<!-- GPG plugin -->
8585
<plugin>
8686
<groupId>org.apache.maven.plugins</groupId>

src/main/java/com/securenative/EventOptionsBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public EventOptionsBuilder timestamp(Date timestamp) {
6868
}
6969

7070
public EventOptions build() throws SecureNativeInvalidOptionsException {
71-
if (this.eventOptions.getProperties().size() > MAX_PROPERTIES_SIZE) {
71+
if (this.eventOptions.getProperties() != null && this.eventOptions.getProperties().size() > MAX_PROPERTIES_SIZE) {
7272
throw new SecureNativeInvalidOptionsException(String.format("You can have only up to %d custom properties", MAX_PROPERTIES_SIZE));
7373
}
7474
return this.eventOptions;

0 commit comments

Comments
 (0)