Tobias Krais wrote:
> Hi together,
>
> currently I implement a package manager in Java for deploying my UNO
> extension. But I experienced some weird problems I want to share with you.
> First this information: my extension is an .oxt package containing a jar
> file. The problem I describe next does not occur with the non-Java
> packages I tested.
>
> I use the XPackageManager.addPackage() method. This method takes 4
> arguments. The second is the "media-type of package, empty string if to
> be detected". If I pass "null" for the second argument, the package is
> installed without failures. But I cannot use my implemented protocol
> handler! If I pass just an empty String (""), the package is also
> installed (again, no failures while installing) and my protocol handler
> works.
> Is this a bug or a feature?
Without further knowledge about the internals I think that if the
documentation asks you to pass an empty string you should do that (and
it obviously works then, as you wrote). "null" is not an empty string, I
think you are lucky that it doesn't crash or at least throws an exception.
Ciao,
Mathias
--
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]