This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch camel-3.14.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.14.x by this push:
     new ba2214c  NPE guard
ba2214c is described below

commit ba2214c78de9df939d00cd224dff3582c92781fc
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());

Reply via email to