File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
opengrok-indexer/src/main/java/org/opengrok/indexer Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 47
47
import java .util .logging .Logger ;
48
48
49
49
import org .apache .commons .lang3 .SystemUtils ;
50
+ import org .jetbrains .annotations .Nullable ;
50
51
import org .opengrok .indexer .configuration .RuntimeEnvironment ;
51
52
import org .opengrok .indexer .index .IndexerParallelizer ;
52
53
import org .opengrok .indexer .logger .LoggerFactory ;
@@ -495,6 +496,7 @@ private void addTerraformSupport(List<String> command) {
495
496
* @throws IOException I/O exception
496
497
* @throws InterruptedException interrupted command
497
498
*/
499
+ @ Nullable
498
500
public Definitions doCtags (String file ) throws IOException , InterruptedException {
499
501
500
502
if (file .length () < 1 || "\n " .equals (file )) {
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ private static boolean canProcessFiles(String basePath) {
93
93
Ctags ctags = new Ctags ();
94
94
try {
95
95
Definitions definitions = ctags .doCtags (inputPath .toString ());
96
- if (definitions .numberOfSymbols () > 1 ) {
96
+ if (definitions != null && definitions .numberOfSymbols () > 1 ) {
97
97
return true ;
98
98
}
99
99
} catch (IOException | InterruptedException e ) {
You can’t perform that action at this time.
0 commit comments