- NPE check (when using JMX, if I remember correctly).
authorremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 23 May 2007 15:44:33 +0000 (15:44 +0000)
committerremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 23 May 2007 15:44:33 +0000 (15:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@540979 13f79535-47bb-0310-9956-ffa450edef68

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

index 13027b8..b5b2184 100644 (file)
@@ -1875,6 +1875,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();