Repository: cxf Updated Branches: refs/heads/3.1.x-fixes 60c24cda7 -> 23112f714
[CXF-6770] Fixing NPE Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/23112f71 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/23112f71 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/23112f71 Branch: refs/heads/3.1.x-fixes Commit: 23112f714cc6c52bef8678739f216f5a8ef26d49 Parents: 60c24cd Author: Sergey Beryozkin <[email protected]> Authored: Wed Feb 10 12:05:57 2016 +0000 Committer: Sergey Beryozkin <[email protected]> Committed: Wed Feb 10 12:06:59 2016 +0000 ---------------------------------------------------------------------- .../java/org/apache/cxf/ext/logging/event/PrettyLoggingFilter.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/23112f71/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/PrettyLoggingFilter.java ---------------------------------------------------------------------- diff --git a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/PrettyLoggingFilter.java b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/PrettyLoggingFilter.java index bb99ff2..db42fd4 100644 --- a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/PrettyLoggingFilter.java +++ b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/PrettyLoggingFilter.java @@ -66,6 +66,7 @@ public class PrettyLoggingFilter implements LogEventSender { // that can occur when we set a limit and cur the rest off XMLStreamWriter xwriter = StaxUtils.createXMLStreamWriter(swriter); xwriter = new PrettyPrintXMLStreamWriter(xwriter, 2); + encoding = encoding == null ? "UTF-8" : encoding; InputStream in = new ByteArrayInputStream(message.getBytes(encoding)); try { StaxUtils.copy(new StreamSource(in), xwriter);
