KissXML icon indicating copy to clipboard operation
KissXML copied to clipboard

nodesForXPath:error: logs error, but error is nil

Open ronhippler opened this issue 10 years ago • 0 comments

The console logs XPath error : Undefined namespace prefix and XPath error : Invalid expression, which is correct, but the error points to nil.

With a breakpoint at

    if (xpathObj == NULL) {
        if (error) *error = [[self class] lastError];
        result = nil;
    }

i see that lastError = nil

ronhippler avatar May 26 '15 19:05 ronhippler