Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsminto2011-03-03 16:08:16 -0500
committersminto2011-03-03 16:08:16 -0500
commit618b49eac9c0635bf85b76af9c6f632b044abcfe (patch)
treed1ba9ce7d39e0199e5fb1b5770818a192a23a11d
parentad702eb98f673f332b5463dd96ae3d87ce18cde8 (diff)
downloadorg.eclipse.mylyn.incubator-618b49eac9c0635bf85b76af9c6f632b044abcfe.tar.gz
org.eclipse.mylyn.incubator-618b49eac9c0635bf85b76af9c6f632b044abcfe.tar.xz
org.eclipse.mylyn.incubator-618b49eac9c0635bf85b76af9c6f632b044abcfe.zip
NEW - bug 338846: Eclipse log is filled with excessive entries "Could not log interaction event"
https://bugs.eclipse.org/bugs/show_bug.cgi?id=338846
-rw-r--r--org.eclipse.mylyn.monitor.usage/src/org/eclipse/mylyn/internal/monitor/usage/InteractionEventLogger.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.monitor.usage/src/org/eclipse/mylyn/internal/monitor/usage/InteractionEventLogger.java b/org.eclipse.mylyn.monitor.usage/src/org/eclipse/mylyn/internal/monitor/usage/InteractionEventLogger.java
index 17da80ea..9c464d0e 100644
--- a/org.eclipse.mylyn.monitor.usage/src/org/eclipse/mylyn/internal/monitor/usage/InteractionEventLogger.java
+++ b/org.eclipse.mylyn.monitor.usage/src/org/eclipse/mylyn/internal/monitor/usage/InteractionEventLogger.java
@@ -75,7 +75,9 @@ public class InteractionEventLogger extends AbstractMonitorLog implements IInter
try {
if (started) {
String xml = getXmlForEvent(event);
- outputStream.write(xml.getBytes());
+ if (outputStream != null) {
+ outputStream.write(xml.getBytes());
+ }
} else if (event != null) {
queue.add(event);
}

Back to the top