You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2024/01/29 15:13:09 UTC
(camel) branch main updated: Fix of NPE in IcalDatsFormat (Camel-20375) (#12947)
This is an automated email from the ASF dual-hosted git repository.
davsclaus 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 08e012de9c8 Fix of NPE in IcalDatsFormat (Camel-20375) (#12947)
08e012de9c8 is described below
commit 08e012de9c8f4219c8050d63bf02d17f19ea2b2c
Author: JiriOndrusek <on...@gmail.com>
AuthorDate: Mon Jan 29 16:13:02 2024 +0100
Fix of NPE in IcalDatsFormat (Camel-20375) (#12947)
---
.../main/java/org/apache/camel/component/ical/ICalDataFormat.java | 6 +++---
.../java/org/apache/camel/component/ical/ICalDataFormatTest.java | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/components/camel-ical/src/main/java/org/apache/camel/component/ical/ICalDataFormat.java b/components/camel-ical/src/main/java/org/apache/camel/component/ical/ICalDataFormat.java
index e43f2e16f7a..79012c783b5 100644
--- a/components/camel-ical/src/main/java/org/apache/camel/component/ical/ICalDataFormat.java
+++ b/components/camel-ical/src/main/java/org/apache/camel/component/ical/ICalDataFormat.java
@@ -66,12 +66,12 @@ public class ICalDataFormat extends ServiceSupport implements DataFormat, DataFo
// noop
}
- public void setValidating(boolean validate) {
- outputer.setValidating(validate);
+ public void setValidating(boolean validating) {
+ this.validating = validating;
}
public boolean isValidating() {
- return outputer.isValidating();
+ return validating;
}
}
diff --git a/components/camel-ical/src/test/java/org/apache/camel/component/ical/ICalDataFormatTest.java b/components/camel-ical/src/test/java/org/apache/camel/component/ical/ICalDataFormatTest.java
index 115d9fb091c..cc869941af8 100644
--- a/components/camel-ical/src/test/java/org/apache/camel/component/ical/ICalDataFormatTest.java
+++ b/components/camel-ical/src/test/java/org/apache/camel/component/ical/ICalDataFormatTest.java
@@ -103,7 +103,7 @@ public class ICalDataFormatTest extends CamelTestSupport {
@Override
public void configure() {
from("direct:unmarshal")
- .unmarshal("ical")
+ .unmarshal().ical(true)
.to("mock:result");
from("direct:marshal")
.marshal("ical")