null pointer fix
This commit is contained in:
parent
92e0713373
commit
6bb7764d72
|
@ -133,6 +133,9 @@ public class MessageParser {
|
|||
} else {
|
||||
return null;
|
||||
}
|
||||
if (forwarded==null) {
|
||||
return null;
|
||||
}
|
||||
Element message = forwarded.findChild("message");
|
||||
if ((message == null) || (!message.hasChild("body")))
|
||||
return null; // either malformed or boring
|
||||
|
|
Loading…
Reference in a new issue