File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
opengrok-indexer/src/main/java/org/opengrok/indexer/index Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -264,8 +264,11 @@ public static void main(String argv[]) {
264
264
Project project ;
265
265
if ((project = Project .getProject (path )) != null ) {
266
266
subFiles .add (path );
267
- repositories .addAll (env .getProjectRepositoriesMap ().get (project ).
268
- stream ().map (x -> x .getDirectoryNameRelative ()).collect (Collectors .toSet ()));
267
+ List <RepositoryInfo > repoList = env .getProjectRepositoriesMap ().get (project );
268
+ if (repoList != null ) {
269
+ repositories .addAll (repoList .
270
+ stream ().map (x -> x .getDirectoryNameRelative ()).collect (Collectors .toSet ()));
271
+ }
269
272
} else {
270
273
System .err .println ("The path " + path
271
274
+ " does not correspond to a project" );
You can’t perform that action at this time.
0 commit comments