This is an automated email from the ASF dual-hosted git repository.

seanfinan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ctakes.git


The following commit(s) were added to refs/heads/main by this push:
     new 84ee7d5  Check for null log parent directory before trying to create 
it.
84ee7d5 is described below

commit 84ee7d58884f7560c33a44d830554826221f9d78
Author: Sean Finan <[email protected]>
AuthorDate: Tue Jan 24 13:56:35 2023 -0500

    Check for null log parent directory before trying to create it.
---
 .../main/java/org/apache/ctakes/core/util/external/SystemUtil.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/ctakes-core/src/main/java/org/apache/ctakes/core/util/external/SystemUtil.java
 
b/ctakes-core/src/main/java/org/apache/ctakes/core/util/external/SystemUtil.java
index bb7393e..4ed034a 100644
--- 
a/ctakes-core/src/main/java/org/apache/ctakes/core/util/external/SystemUtil.java
+++ 
b/ctakes-core/src/main/java/org/apache/ctakes/core/util/external/SystemUtil.java
@@ -416,7 +416,10 @@ final public class SystemUtil {
          if ( _logger == null ) {
             if ( _outLog != null && !_outLog.isEmpty() ) {
                final File log = new File( _outLog );
-               log.getParentFile().mkdirs();
+               if ( log.getParentFile() != null ) {
+                  log.getParentFile()
+                     .mkdirs();
+               }
                command += " > " + _outLog + " 2>&1";
             } else {
                command += " > " + getDefaultLogFile() + " 2>&1";

Reply via email to