diff options
author | Uwe Stieber | 2012-05-08 08:32:48 +0000 |
---|---|---|
committer | Uwe Stieber | 2012-05-08 08:32:48 +0000 |
commit | 1248d500d54a3f3185ff9b35c00fe0b536c27b4e (patch) | |
tree | 3ed940aafb2fcbe0293b9e745ee25e86c9c5a1fb /target_explorer/plugins/org.eclipse.tcf.te.runtime | |
parent | 1f1f081b52beebbf243b64a3b8b8a1471f2712c3 (diff) | |
download | org.eclipse.tcf-1248d500d54a3f3185ff9b35c00fe0b536c27b4e.tar.gz org.eclipse.tcf-1248d500d54a3f3185ff9b35c00fe0b536c27b4e.tar.xz org.eclipse.tcf-1248d500d54a3f3185ff9b35c00fe0b536c27b4e.zip |
Target Explorer: Bug 378411 - AssertionErrors in TraceHandler when shutting down IDE with debug session open
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime')
-rw-r--r-- | target_explorer/plugins/org.eclipse.tcf.te.runtime/src/org/eclipse/tcf/te/runtime/tracing/TraceHandler.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime/src/org/eclipse/tcf/te/runtime/tracing/TraceHandler.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime/src/org/eclipse/tcf/te/runtime/tracing/TraceHandler.java index 354c60a49..908d442cb 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.runtime/src/org/eclipse/tcf/te/runtime/tracing/TraceHandler.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime/src/org/eclipse/tcf/te/runtime/tracing/TraceHandler.java @@ -12,6 +12,7 @@ package org.eclipse.tcf.te.runtime.tracing; import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Platform;
+import org.eclipse.tcf.te.runtime.activator.CoreBundleActivator;
/**
* Helper class to handle tracing using the platforms debug capabilities.
@@ -178,11 +179,11 @@ public class TraceHandler { * <p>
* Initializes the tracing handler with the given bundle identifier.
*
- * @param identifier The bundle identifier. Must not be <code>null</code>.
+ * @param identifier The bundle identifier or <code>null</code>.
*/
public TraceHandler(String identifier) {
- Assert.isNotNull(identifier);
- this.identifier = identifier;
+ this.identifier = identifier != null ? identifier : CoreBundleActivator.getUniqueIdentifier();
+ Assert.isNotNull(this.identifier);
}
/**
|