You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by co...@apache.org on 2022/01/26 08:17:25 UTC

[camel] branch main updated: NPE guard

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

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


The following commit(s) were added to refs/heads/main by this push:
     new d691aa68 NPE guard
d691aa68 is described below

commit d691aa68f630f161c36ddc5c9b24b676246e2541
Author: Colm O hEigeartaigh <co...@apache.org>
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());