You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by bu...@apache.org on 2006/10/18 20:34:43 UTC

DO NOT REPLY [Bug 40783] - NPE in ResolverDirectHTTP.engineCanResolve

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40783>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40783





------- Additional Comments From sean.mullan@sun.com  2006-10-18 11:34 -------
Do you know if this is a regression from 1.3? I don't think it is. In
any case, the fix is trivial (diffs below), but I'll leave it up to Raul to
decide if we can squeeze it in for 1.4.

$ svn diff ResolverDirectHTTP.java
Index: ResolverDirectHTTP.java
===================================================================
--- ResolverDirectHTTP.java     (revision 433241)
+++ ResolverDirectHTTP.java     (working copy)
@@ -262,7 +262,7 @@
        log.debug("I was asked whether I can resolve " + uriNodeValue);
 
       if ( uriNodeValue.startsWith("http:") ||
-                                BaseURI.startsWith("http:")) {
+                                (BaseURI != null && BaseURI.startsWith("http:"))) {
          if (log.isDebugEnabled())
                log.debug("I state that I can resolve " + uriNodeValue);
 


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.