1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 17:49:38 +02:00

More forgiving with values from incoming packets.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1967 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-06-19 14:40:48 +00:00 committed by mtucker
parent 0e1a1a0feb
commit 5673eca059
4 changed files with 22 additions and 1 deletions

View file

@ -154,6 +154,10 @@ public class IQ extends Packet {
* @return the corresponding Type.
*/
public static Type fromString(String type) {
if (type == null) {
return null;
}
type = type.toLowerCase();
if (GET.toString().equals(type)) {
return GET;
}