[Libreoffice-commits] core.git: scripting/java
Robert Antoni Buj i Gelonch
robert.buj at gmail.com
Mon Oct 13 10:19:16 PDT 2014
scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b862f6e92357f8d4a8d88072ce5caf44bd6f1c6d
Author: Robert Antoni Buj i Gelonch <robert.buj at gmail.com>
Date: Sat Oct 11 20:10:51 2014 +0200
scripting: Null pointer dereference
Change-Id: I0d72ef34945065f68e9af8b0957dc440a74c14ce
Reviewed-on: https://gerrit.libreoffice.org/11923
Reviewed-by: Matthew Francis <mjay.francis at gmail.com>
Tested-by: Matthew Francis <mjay.francis at gmail.com>
diff --git a/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java b/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java
index bcef577..8daf836 100644
--- a/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java
+++ b/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java
@@ -171,7 +171,7 @@ public abstract class ScriptProvider implements
} else {
// otherwise, check whether it's an XModel
m_xModel =
- UnoRuntime.queryInterface(XModel.class, m_xInvocContext.getScriptContainer());
+ UnoRuntime.queryInterface(XModel.class, aArguments[0]);
}
if (m_xModel == null) {
More information about the Libreoffice-commits
mailing list