Skip to content

Commit

Permalink
Remove potential NullPointerException when trying to log an error in …
Browse files Browse the repository at this point in the history
…VNC recorder (#3408)
  • Loading branch information
codefiddler committed Oct 29, 2020
1 parent 1b4a2a6 commit f4fb79b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ protected void configure() {
vncRecordingDirectory = Files.createTempDirectory(TC_TEMP_DIR_PREFIX).toFile();
} catch (IOException e) {
// should never happen as per javadoc, since we use valid prefix
logger().error("Exception while trying to create temp directory " + vncRecordingDirectory.getAbsolutePath(), e);
logger().error("Exception while trying to create temp directory", e);
throw new ContainerLaunchException("Exception while trying to create temp directory", e);
}
}
Expand Down

0 comments on commit f4fb79b

Please sign in to comment.