fixed array out of bounds
This commit is contained in:
parent
2ab757d6a2
commit
10f2231bcf
|
@ -101,7 +101,9 @@ public class MucOptions {
|
|||
}
|
||||
|
||||
public void processPacket(PresencePacket packet) {
|
||||
String name = packet.getAttribute("from").split("/")[1];
|
||||
String[] fromParts = packet.getFrom().split("/");
|
||||
if (fromParts.length>=2) {
|
||||
String name = fromParts[1];
|
||||
String type = packet.getAttribute("type");
|
||||
if (type==null) {
|
||||
User user = new User();
|
||||
|
@ -144,6 +146,7 @@ public class MucOptions {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public List<User> getUsers() {
|
||||
return this.users;
|
||||
|
|
Loading…
Reference in a new issue