Skip to content
Snippets Groups Projects
Unverified Commit c97be15e authored by brock-signal's avatar brock-signal Committed by GitHub
Browse files

Fix NPE when a null message comes in from a client

parent 164fc409
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,8 @@
*/
package org.whispersystems.textsecuregcm.entities;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.validation.Valid;
......@@ -15,6 +17,7 @@ public class IncomingMessageList {
@JsonProperty
@NotNull
@Valid
@JsonInclude(Include.NON_NULL)
private List<IncomingMessage> messages;
@JsonProperty
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment