WIP cherry-pick fix for NPE in IGLoader
This commit is contained in:
parent
02c48f7ba6
commit
ee3024c1b7
|
@ -497,10 +497,12 @@ public class IgLoader implements IValidationEngineLoader {
|
||||||
private Map<String, ByteProvider> fetchByPackage(String src, boolean loadInContext) throws FHIRException, IOException {
|
private Map<String, ByteProvider> fetchByPackage(String src, boolean loadInContext) throws FHIRException, IOException {
|
||||||
NpmPackage pi;
|
NpmPackage pi;
|
||||||
|
|
||||||
InputStream stream = directProvider.fetchByPackage(src);
|
if (directProvider != null) {
|
||||||
if (stream != null) {
|
InputStream stream = directProvider.fetchByPackage(src);
|
||||||
pi = NpmPackage.fromPackage(stream);
|
if (stream != null) {
|
||||||
return loadPackage(pi, loadInContext);
|
pi = NpmPackage.fromPackage(stream);
|
||||||
|
return loadPackage(pi, loadInContext);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
String id = src;
|
String id = src;
|
||||||
String version = null;
|
String version = null;
|
||||||
|
|
Loading…
Reference in New Issue