Skip to content

Commit

Permalink
fix unit test if readpst is available on the path
Browse files Browse the repository at this point in the history
  • Loading branch information
tballison committed Feb 25, 2025
1 parent fe941ce commit 64ccf3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public void initialize(Map<String, Param> map) throws TikaConfigException {
throw new TikaConfigException("path can't include null values");
}
String fullReadPstCommand = getFullReadPstCommand();
if (! Files.isRegularFile(Paths.get(fullReadPstCommand))) {
if (! StringUtils.isBlank(readPstPath) && ! Files.isRegularFile(Paths.get(fullReadPstCommand))) {
throw new TikaConfigException("I regret I can't find the readpst executable: " + fullReadPstCommand);
}
try {
Expand Down

0 comments on commit 64ccf3e

Please sign in to comment.