jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1827350 - /jmeter/trunk/src/core/org/apache/jmeter/reporters/ResultSaver.java
Date Tue, 20 Mar 2018 19:29:38 GMT
Author: pmouawad
Date: Tue Mar 20 19:29:38 2018
New Revision: 1827350

URL: http://svn.apache.org/viewvc?rev=1827350&view=rev
Log:
[Bug 62195] Save Responses to a file : Improve component and UI
Fix NPE
Bugzilla Id: 62195

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/reporters/ResultSaver.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/reporters/ResultSaver.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/reporters/ResultSaver.java?rev=1827350&r1=1827349&r2=1827350&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/reporters/ResultSaver.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/reporters/ResultSaver.java Tue Mar 20 19:29:38
2018
@@ -227,6 +227,9 @@ public class ResultSaver extends Abstrac
      * @param parentFile
      */
     private void createFoldersIfNeeded(File parentFile) {
+        if(parentFile == null) {
+            return;
+        }
         if (!parentFile.exists()) {
             log.debug("Creating path hierarchy for folder {}", parentFile.getAbsolutePath());
             if(!parentFile.mkdirs()) {



Mime
View raw message