1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-23 02:58:00 +01:00

fix for NPE in setName

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2101 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2003-09-24 18:03:33 +00:00 committed by gdombiak
parent 46d6647772
commit 5d628f4d36

View file

@ -58,7 +58,7 @@ public class RosterEntry {
*/ */
public void setName(String name) { public void setName(String name) {
// Do nothing if the name hasn't changed. // Do nothing if the name hasn't changed.
if (name != null && this.name.equals(name)) { if (name != null && name.equals(this.name)) {
return; return;
} }
this.name = name; this.name = name;