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:
committed by
Matthew Francis
parent
c18591107d
commit
b862f6e923
@@ -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) {
|
||||
|
Reference in New Issue
Block a user