From 4929a81e726909db084882c60807052cb4709f36 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Mon, 5 May 2003 04:33:22 +0000 Subject: [PATCH] Bug fix for setName method. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1917 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/RosterEntry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smack/RosterEntry.java b/source/org/jivesoftware/smack/RosterEntry.java index 127bd8a5e..ff6c71518 100644 --- a/source/org/jivesoftware/smack/RosterEntry.java +++ b/source/org/jivesoftware/smack/RosterEntry.java @@ -58,7 +58,7 @@ public class RosterEntry { */ public void setName(String name) { // Do nothing if the name hasn't changed. - if (this.name.equals(name)) { + if (name != null && this.name.equals(name)) { return; } this.name = name;