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....@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.fran...@gmail.com> Tested-by: Matthew Francis <mjay.fran...@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) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits