diff --git a/source/org/jivesoftware/smack/packet/Presence.java b/source/org/jivesoftware/smack/packet/Presence.java index 595a74f73..179b80599 100644 --- a/source/org/jivesoftware/smack/packet/Presence.java +++ b/source/org/jivesoftware/smack/packet/Presence.java @@ -74,8 +74,8 @@ package org.jivesoftware.smack.packet; *
*
* Presence packets are used for two purposes. First, to notify the server of our
@@ -90,7 +90,7 @@ public class Presence extends Packet {
private Type type = Type.AVAILABLE;
private String status = null;
private int priority = -1;
- private Mode mode = null;
+ private Mode mode = Mode.AVAILABLE;
/**
* Creates a new presence update. Status, priority, and mode are left un-set.
@@ -174,8 +174,7 @@ public class Presence extends Packet {
}
/**
- * Returns the mode of the presence update, or null if no mode has been set.
- * A null value for mode means the client is in the standard "available" state.
+ * Returns the mode of the presence update.
*
* @return the mode.
*/
@@ -215,7 +214,7 @@ public class Presence extends Packet {
if (priority != -1) {
buf.append("