This is an automated email from the ASF dual-hosted git repository. coheigea pushed a commit to branch camel-3.11.x in repository https://gitbox.apache.org/repos/asf/camel.git
commit 3f5823c9f4f0e347f3ed62d4647be814d276009a Author: Colm O hEigeartaigh <[email protected]> AuthorDate: Wed Jan 26 08:16:43 2022 +0000 NPE guard --- .../src/main/java/org/apache/camel/component/jira/FileConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-jira/src/main/java/org/apache/camel/component/jira/FileConverter.java b/components/camel-jira/src/main/java/org/apache/camel/component/jira/FileConverter.java index 587dd24..d7d2f36 100644 --- a/components/camel-jira/src/main/java/org/apache/camel/component/jira/FileConverter.java +++ b/components/camel-jira/src/main/java/org/apache/camel/component/jira/FileConverter.java @@ -38,7 +38,7 @@ public final class FileConverter { if (body instanceof byte[]) { byte[] bos = (byte[]) body; String destDir = System.getProperty("java.io.tmpdir"); - if (!destDir.endsWith(File.separator)) { + if (destDir != null && !destDir.endsWith(File.separator)) { destDir += File.separator; } file = new File(destDir, genericFile.getFileName());
