diff --git a/Pod/Classes/XPathQuery.m b/Pod/Classes/XPathQuery.m old mode 100644 new mode 100755 index b3f58a9..d380c60 --- a/Pod/Classes/XPathQuery.m +++ b/Pod/Classes/XPathQuery.m @@ -30,6 +30,9 @@ if (nodeContent != NULL) { NSString *currentNodeContent = [NSString stringWithCString:(const char *)nodeContent encoding:NSUTF8StringEncoding]; + if (currentNodeContent == nil) { + currentNodeContent = @""; + } if ([resultForNode[@"nodeName"] isEqual:@"text"] && parentResult) { if (parentContent) { NSCharacterSet *charactersToTrim = [NSCharacterSet whitespaceAndNewlineCharacterSet];