Include fix for 43117 in trunk
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 10 Sep 2008 20:02:34 +0000 (20:02 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 10 Sep 2008 20:02:34 +0000 (20:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@693962 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/StandardContext.java

index 5cfd513..719da09 100644 (file)
@@ -1882,6 +1882,9 @@ public class StandardContext
      * @return The work path
      */ 
     public String getWorkPath() {
+        if (getWorkDir() == null) {
+            return null;
+        }
         File workDir = new File(getWorkDir());
         if (!workDir.isAbsolute()) {
             File catalinaHome = engineBase();