Author: sebb
Date: Wed Apr 13 22:43:58 2016
New Revision: 1739018
URL: http://svn.apache.org/viewvc?rev=1739018&view=rev
Log:
Fix NPE if report File does not include a path
Modified:
jmeter/trunk/src/jorphan/org/apache/jorphan/util/JOrphanUtils.java
Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/util/JOrphanUtils.java
URL:
http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/util/JOrphanUtils.java?rev=1739018&r1=1739017&r2=1739018&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/util/JOrphanUtils.java
(original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/util/JOrphanUtils.java Wed Apr
13 22:43:58 2016
@@ -603,7 +603,7 @@ public final class JOrphanUtils {
}
} else {
// check we can create it
- if(!folder.getParentFile().canWrite()) {
+ if(!folder.getAbsoluteFile().getParentFile().canWrite()) {
throw new IllegalArgumentException("Cannot write to '"
+folder.getAbsolutePath()+"' as folder does not exist
and parent folder is not writable");
}