commit | 597c77238b1ed90bc3823d4e18c17f4b01c91b6f | [log] [tgz] |
---|---|---|
author | Joerg Kubitz <jkubitz-eclipse@gmx.de> | Thu Aug 26 13:07:23 2021 +0200 |
committer | Lars Vogel <Lars.Vogel@vogella.com> | Thu Sep 09 07:01:46 2021 -0400 |
tree | da90d2e989f3b3e5dfb94caeea0a3afe3257581e | |
parent | da8cb8ed9c5a4b5aed043b4e6bee4a11c5210044 [diff] |
Bug 575643 - omit "null" in Status without exception It is getting logged in org.eclipse.tea.core.TaskExecutionContext#execute Change-Id: Id89b49167cc0a2b11885376dae36d71b43c3c1ee Signed-off-by: Joerg Kubitz <jkubitz-eclipse@gmx.de> Reviewed-on: https://git.eclipse.org/r/c/equinox/rt.equinox.bundles/+/184448 Tested-by: Lars Vogel <Lars.Vogel@vogella.com> Tested-by: Equinox Bot <equinox-bot@eclipse.org> Reviewed-by: Lars Vogel <Lars.Vogel@vogella.com>
diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/Status.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/Status.java index e7b3351..0393476 100644 --- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/Status.java +++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/Status.java
@@ -461,8 +461,10 @@ buf.append(code); buf.append(' '); buf.append(message); - buf.append(' '); - buf.append(exception); + if (exception != null) { + buf.append(' '); + buf.append(exception); + } return buf.toString(); } }