Commit 519a54f5 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed serialization problem.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8340 b35dd754-fafc-0310-a699-88a17e54d16e
parent adef5145
...@@ -178,10 +178,8 @@ public class Group implements Cacheable, Externalizable { ...@@ -178,10 +178,8 @@ public class Group implements Cacheable, Externalizable {
* @param description the description of the group. * @param description the description of the group.
*/ */
public void setDescription(String description) { public void setDescription(String description) {
if (description == this.description || if (description == this.description || (description != null && description.equals(this.description)) ||
(description != null && description.equals(this.description)) || provider.isReadOnly()) {
provider.isReadOnly())
{
// Do nothing // Do nothing
return; return;
} }
...@@ -616,6 +614,7 @@ public class Group implements Cacheable, Externalizable { ...@@ -616,6 +614,7 @@ public class Group implements Cacheable, Externalizable {
public void writeExternal(ObjectOutput out) throws IOException { public void writeExternal(ObjectOutput out) throws IOException {
ExternalizableUtil.getInstance().writeSafeUTF(out, name); ExternalizableUtil.getInstance().writeSafeUTF(out, name);
ExternalizableUtil.getInstance().writeBoolean(out, description != null);
if (description != null) { if (description != null) {
ExternalizableUtil.getInstance().writeSafeUTF(out, description); ExternalizableUtil.getInstance().writeSafeUTF(out, description);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment