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>
This commit is contained in:
Robert Antoni Buj i Gelonch
2014-10-11 20:10:51 +02:00
committed by Matthew Francis
parent c18591107d
commit b862f6e923

View File

@@ -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) {