summaryrefslogtreecommitdiff
path: root/bean/com/sun
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-05-07 16:49:54 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-05-07 17:03:00 +0200
commit6752930497d1c9d0d1ebb29113e89bdaf9e53aaa (patch)
tree9eeb12c33de8ab9af4de09fc4e5ab60248447479 /bean/com/sun
parent7bfded003e8333b167c94f9f55ce7cc224f5cd7b (diff)
LocalOfficeConnection description must end in ServiceManager
...instead of NamingService. Even though current <http://wiki.services.openoffice.org/w/index.php?title=Documentation/DevGuide/JavaBean/Customized_Configuration&oldid=127145> documents using the latter, it leads to NullPointerException, as connect() expects aInitialObject to be an XPropertySet. Change-Id: Ia8445bed5307bf440d078a8b96200e3b7fa38706
Diffstat (limited to 'bean/com/sun')
-rw-r--r--bean/com/sun/star/comp/beans/LocalOfficeConnection.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java
index bb6abdd53195..4b5f4fcec881 100644
--- a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java
+++ b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java
@@ -531,7 +531,7 @@ public class LocalOfficeConnection
throws java.net.MalformedURLException
{
// Extruct parameters.
- int idx = url.indexOf(";urp;StarOffice.NamingService");
+ int idx = url.indexOf(";urp;StarOffice.ServiceManager");
if (idx < 0)
throw new java.net.MalformedURLException(
"Invalid UNO connection URL.");