Hi Andreas. Andreas Hartmann: > in Lenya, we'd like to use a Cocoon component (SVGSerializer) which > depends on Batik 1.6. If we enable the SourceProtocolHandler (a > Cocoon-specific implementation of ParsedURLProtocolHandler), we're > getting an NPE when the urlStr parameter is null: > > https://issues.apache.org/jira/browse/COCOON-2148 > > Should the ParsedURLProtocolHandler be aware of the circumstance that > urlStr can be null? Or is this an error case?
As pointed out in the above Cocoon bug, the ParsedURLDefaultProtocolHandler does explicitly check for a null urlStr. ParsedURLDataProtocolHandler, on the other hand, doesn’t. ParsedURLDefaultProtocolHandler just returns an uninitialised ParsedURLData object when parseURL(null) is called. I don’t know if passing null to parseURL makes much sense, though. What is it used for in Cocoon? I slightly prefer to disallow null, but it’s not a strong feeling. -- Cameron McCormack, http://mcc.id.au/ xmpp:[EMAIL PROTECTED] ▪ ICQ 26955922 ▪ MSN [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
