Project

Profile

Help

Revision ded8b3f9

Added by Michael Kay over 13 years ago

Fix bug 2013712 (NPE in Query command line with -u option)

View differences:

latest9.0/bj/net/sf/saxon/Query.java
673 673
            exp = staticEnv.compileQuery(q);
674 674
        } else if (useURLs || queryFileName.startsWith("http:") || queryFileName.startsWith("file:")) {
675 675
            ModuleURIResolver resolver = staticEnv.getModuleURIResolver();
676
            if (resolver == null) {
677
                resolver = staticEnv.getConfiguration().getStandardModuleURIResolver();
678
            }
676 679
            String[] locations = {queryFileName};
677 680
            Source[] sources = resolver.resolve(null, null, locations);
678 681
            if (sources.length != 1 || !(sources[0] instanceof StreamSource)) {

Also available in: Unified diff