Project

Profile

Help

Revision 61655abc

Added by Michael Kay over 10 years ago

Fix bug 3183658 NPE when importing separately-compiled XQuery library module

View differences:

latest9.3/hej/net/sf/saxon/query/QueryParser.java
1326 1326
            boolean loaded = false;
1327 1327
            if (existingModules != null && m < hints.length) {
1328 1328
                for (int e=0; e<existingModules.size(); e++) {
1329
                    if (((QueryModule)existingModules.get(e)).getLocationURI().equals(mImport.locationURIs.get(m))) {
1329
                    URI uri = existingModules.get(e).getLocationURI();
1330
                    if (uri != null && uri.equals(mImport.locationURIs.get(m))) {
1330 1331
                        loaded = true;
1331 1332
                        break;
1332 1333
                    }

Also available in: Unified diff