Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 7da7250

Browse files
committed
防止因为没有配置导致的空指针
1 parent dc9a8c1 commit 7da7250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/suren/autotest/web/framework/log/Image4SearchLog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public File getOutputFile()
102102
{
103103
if(outputDir == null)
104104
{
105-
outputDir = new File(pro.getProperty(LoggerConstants.IMG_LOG_DIR));
105+
outputDir = new File(pro.getProperty(LoggerConstants.IMG_LOG_DIR, System.getProperty("java.io.tmpdir")));
106106
if(!outputDir.isDirectory())
107107
{
108108
if(!outputDir.mkdirs())

0 commit comments

Comments
 (0)