We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7993a83 commit fc12b0bCopy full SHA for fc12b0b
javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java
@@ -746,6 +746,9 @@ protected DependencyInstallationResult preparePackagesAndDependencies(Set<Path>
746
if (file.getFileName().toString().equals("package.json")) {
747
try {
748
PackageJson packageJson = new Gson().fromJson(new WholeIO().read(file), PackageJson.class);
749
+ if (packageJson == null) {
750
+ continue;
751
+ }
752
file = file.toAbsolutePath();
753
if (tryRelativize(sourceRoot, file) == null) {
754
continue; // Ignore package.json files outside the source root.
0 commit comments