diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-20 13:48:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-07 13:20:00 +0200 |
commit | 610f3388c781055fcfc3f1ea8a027b1b9cbc5bae (patch) | |
tree | 563e9c044e7261c6e9d60adedb2b2481227379f7 /jurt | |
parent | 831051f55e22e909cc140e3ec4d1aae282a92fcd (diff) |
java: no need to check for null before calling instanceof
the instanceof check returns false when passed a null value
Change-Id: I7742d0d9cf25ef23d9adee7328f701c7efeea8b5
Diffstat (limited to 'jurt')
-rw-r--r-- | jurt/com/sun/star/comp/loader/JavaLoader.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jurt/com/sun/star/comp/loader/JavaLoader.java b/jurt/com/sun/star/comp/loader/JavaLoader.java index 4298d0b756d5..7649d1021253 100644 --- a/jurt/com/sun/star/comp/loader/JavaLoader.java +++ b/jurt/com/sun/star/comp/loader/JavaLoader.java @@ -323,7 +323,7 @@ public class JavaLoader implements XImplementationLoader, try { if (null != compfac_method) { Object ret = compfac_method.invoke( clazz, new Object [] { implementationName } ); - if (null == ret || !(ret instanceof XSingleComponentFactory)) + if (!(ret instanceof XSingleComponentFactory)) throw new CannotActivateFactoryException( "No factory object for " + implementationName ); |