From 3b2b8f91ff22b93050b9b1aa3da5bd4359182499 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Wed, 1 Oct 2008 09:04:58 +0000 Subject: CWS-TOOLING: integrate CWS sb93 --- jurt/com/sun/star/lib/uno/protocols/urp/Marshal.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'jurt') diff --git a/jurt/com/sun/star/lib/uno/protocols/urp/Marshal.java b/jurt/com/sun/star/lib/uno/protocols/urp/Marshal.java index 0837df025ac9..0895903de75e 100644 --- a/jurt/com/sun/star/lib/uno/protocols/urp/Marshal.java +++ b/jurt/com/sun/star/lib/uno/protocols/urp/Marshal.java @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: Marshal.java,v $ - * $Revision: 1.20 $ + * $Revision: 1.20.8.1 $ * * This file is part of OpenOffice.org. * @@ -286,6 +286,10 @@ final class Marshal { throw new RuntimeException(e.toString()); } value = any.getObject(); + } else if (value.getClass() == Object.class) { + // Avoid StackOverflowError: + throw new IllegalArgumentException( + "Object instance does not represent UNO value"); } else { type = TypeDescription.getTypeDescription(value.getClass()); } -- cgit