Skip to content

Commit

Permalink
Merge fba48b9 into c9af25c
Browse files Browse the repository at this point in the history
  • Loading branch information
guusdk committed Jul 14, 2021
2 parents c9af25c + fba48b9 commit e302387
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@ private static BookmarkedConference getConferenceStorage(XmlPullParser parser) t
XmlPullParser.Event eventType = parser.next();
if (eventType == XmlPullParser.Event.START_ELEMENT && "nick".equals(parser.getName())) {
String nickString = parser.nextText();
conf.setNickname(Resourcepart.from(nickString));
if (nickString != null && !nickString.isEmpty()) {
conf.setNickname(Resourcepart.from(nickString));
}
}
else if (eventType == XmlPullParser.Event.START_ELEMENT && "password".equals(parser.getName())) {
conf.setPassword(parser.nextText());
Expand Down

0 comments on commit e302387

Please sign in to comment.