summaryrefslogtreecommitdiff
path: root/jurt
diff options
context:
space:
mode:
Diffstat (limited to 'jurt')
-rw-r--r--jurt/com/sun/star/lib/uno/protocols/urp/Marshal.java6
1 files changed, 5 insertions, 1 deletions
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());
}