fix Bug TDI-26818: tRunJob / transmit whole context : Passing a Document (org.dom4j.Document wrapper) in a shared Object context variable throws a StackOverflow exception

https://jira.talendforge.org/browse/TDI-26818

git-svn-id: http://talendforge.org/svn/tos/trunk@111248 f6f1c999-d317-4740-80b0-e6d1abc6f99e
This commit is contained in:
jjzhou
2013-11-21 05:41:14 +00:00
parent 647523c7bb
commit 68ff9da976

View File

@@ -1337,7 +1337,7 @@ public class JSONObject {
*/
static Object wrap(Object object) {
try {
if (object == null) {
if (object == null || object instanceof org.dom4j.Document) {
return NULL;
}
if (object instanceof JSONObject || object instanceof JSONArray || object instanceof Byte