Open GoogleCodeExporter opened 8 years ago
Here is the fix. You can't call .trim() on a text element until you check if
it's null or not:
/**
* Parses the contact information from the DOM Element.
*
* @param element
* the DOM Element
* @return the Contact
*/
private Contact parseContact(Element element) {
String name = element.selectSingleNode(XPathQuery.MESSAGE_NAME_LINK).getText();
if(name != null){
name = name.trim();
}
Original comment by cs3vi...@gmail.com
on 8 Nov 2013 at 2:48
Original issue reported on code.google.com by
cs3vi...@gmail.com
on 8 Nov 2013 at 2:29