diff options
author | Robert Antoni Buj i Gelonch <robert.buj@gmail.com> | 2014-10-11 20:10:51 +0200 |
---|---|---|
committer | Matthew Francis <mjay.francis@gmail.com> | 2014-10-13 17:18:54 +0000 |
commit | b862f6e92357f8d4a8d88072ce5caf44bd6f1c6d (patch) | |
tree | 658afcd5a67cbe31afe2d6d0e064463caf42406a /scripting/java/com | |
parent | c18591107d9c856b15fa884eaed354d021ec4262 (diff) |
scripting: Null pointer dereference
Change-Id: I0d72ef34945065f68e9af8b0957dc440a74c14ce
Reviewed-on: https://gerrit.libreoffice.org/11923
Reviewed-by: Matthew Francis <mjay.francis@gmail.com>
Tested-by: Matthew Francis <mjay.francis@gmail.com>
Diffstat (limited to 'scripting/java/com')
-rw-r--r-- | scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 bcef577491ac..8daf836abcc9 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) { |