Skip to content

Commit

Permalink
Merge pull request #12556 from matejvasek/fix-funqy-time-npe
Browse files Browse the repository at this point in the history
Fix NPE while parsing CloudEvent time
  • Loading branch information
gsmet authored Oct 7, 2020
2 parents b2d5e8f + 1b616c1 commit 05336ca
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ public String subject() {
@Override
public OffsetDateTime time() {
if (time == null) {
time = OffsetDateTime.parse(this.request.getHeader("ce-time"));
String t = this.request.getHeader("ce-time");
if (t != null) {
time = OffsetDateTime.parse(t);
}
}

return time;
Expand Down

0 comments on commit 05336ca

Please sign in to comment.