mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-25 21:42:07 +01:00
Ensure the ID is given in ChatMarkersElements
This commit is contained in:
parent
3547fde91c
commit
36bfa060a5
1 changed files with 4 additions and 3 deletions
|
@ -18,6 +18,7 @@ package org.jivesoftware.smackx.chat_markers.element;
|
||||||
|
|
||||||
import org.jivesoftware.smack.packet.ExtensionElement;
|
import org.jivesoftware.smack.packet.ExtensionElement;
|
||||||
import org.jivesoftware.smack.packet.Message;
|
import org.jivesoftware.smack.packet.Message;
|
||||||
|
import org.jivesoftware.smack.util.StringUtils;
|
||||||
import org.jivesoftware.smack.util.XmlStringBuilder;
|
import org.jivesoftware.smack.util.XmlStringBuilder;
|
||||||
import org.jivesoftware.smackx.chat_markers.ChatMarkersState;
|
import org.jivesoftware.smackx.chat_markers.ChatMarkersState;
|
||||||
|
|
||||||
|
@ -93,7 +94,7 @@ public class ChatMarkersElements {
|
||||||
private final String id;
|
private final String id;
|
||||||
|
|
||||||
public ReceivedExtension(String id) {
|
public ReceivedExtension(String id) {
|
||||||
this.id = id;
|
this.id = StringUtils.requireNotNullNorEmpty(id, "Message ID must not be null");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -146,7 +147,7 @@ public class ChatMarkersElements {
|
||||||
private final String id;
|
private final String id;
|
||||||
|
|
||||||
public DisplayedExtension(String id) {
|
public DisplayedExtension(String id) {
|
||||||
this.id = id;
|
this.id = StringUtils.requireNotNullNorEmpty(id, "Message ID must not be null");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -199,7 +200,7 @@ public class ChatMarkersElements {
|
||||||
private final String id;
|
private final String id;
|
||||||
|
|
||||||
public AcknowledgedExtension(String id) {
|
public AcknowledgedExtension(String id) {
|
||||||
this.id = id;
|
this.id = StringUtils.requireNotNullNorEmpty(id, "Message id must not be null");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue