summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-06-21 17:58:15 +0300
committerArtur Signell <artur@vaadin.com>2012-06-21 17:58:15 +0300
commit44aeee1c95e9ccb4266dd3be785e685abfb674f1 (patch)
tree9c4cd07feeb3053b9787cf98ad54e04a6097c2d6 /src
parent6e1f6b65b53f2f2e01db5ef4b6c668d5cad5b08d (diff)
downloadvaadin-framework-44aeee1c95e9ccb4266dd3be785e685abfb674f1.tar.gz
vaadin-framework-44aeee1c95e9ccb4266dd3be785e685abfb674f1.zip
Avoid infinite loop when producing error message (#8618)
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/AbstractErrorMessage.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/AbstractErrorMessage.java b/src/com/vaadin/terminal/AbstractErrorMessage.java
index 1a625fc0e6..3f526f7339 100644
--- a/src/com/vaadin/terminal/AbstractErrorMessage.java
+++ b/src/com/vaadin/terminal/AbstractErrorMessage.java
@@ -4,6 +4,8 @@
package com.vaadin.terminal;
+import java.io.PrintWriter;
+import java.io.StringWriter;
import java.util.ArrayList;
import java.util.List;
@@ -156,7 +158,10 @@ public abstract class AbstractErrorMessage implements ErrorMessage {
}
return error;
} else {
- return new SystemError(t);
+ StringWriter sw = new StringWriter();
+ PrintWriter pw = new PrintWriter(sw);
+ t.printStackTrace(pw);
+ return new SystemError(sw.toString());
}
}