diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-02-18 16:32:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-02-18 17:21:18 +0000 |
commit | 5750444aff7c8b3b424a01f31b16ba71867f1639 (patch) | |
tree | 743c6213269e22d18b2f69b8444dbe1807e71b5a /scripting | |
parent | dd922f104a80394ac4bb52622e47e1342dd9bacb (diff) |
coverity#1326437 Dereference null return value
Change-Id: I9fe5f799b7b47d8dc1fd34893c392fcecef5b5a4
Diffstat (limited to 'scripting')
-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 90d66e3d572e..31475a0a7bfb 100644 --- a/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java +++ b/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java @@ -552,7 +552,7 @@ public abstract class ScriptProvider implements XPackage newPackage = UnoRuntime.queryInterface(XPackage.class, aElement); - if (aName.length() == 0) { + if (aName == null || aName.length() == 0) { throw new com.sun.star.lang.IllegalArgumentException("Empty name"); } |