diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-02-18 16:34:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-02-18 17:21:18 +0000 |
commit | 3c48764e4f8bf4752de15308a17d222165948099 (patch) | |
tree | cacb2b2f5ec35cec270c3c9620e192ac1e5ef347 /odk/source | |
parent | 5750444aff7c8b3b424a01f31b16ba71867f1639 (diff) |
coverity#1326434 Dereference null return value
Change-Id: I409a8f43ff2533a676546065405010a7fb877295
Diffstat (limited to 'odk/source')
-rw-r--r-- | odk/source/com/sun/star/lib/loader/Loader.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odk/source/com/sun/star/lib/loader/Loader.java b/odk/source/com/sun/star/lib/loader/Loader.java index 750f0b792048..d73260f593d5 100644 --- a/odk/source/com/sun/star/lib/loader/Loader.java +++ b/odk/source/com/sun/star/lib/loader/Loader.java @@ -77,8 +77,8 @@ public final class Loader { JarURLConnection jarConnection = (JarURLConnection) jarurl.openConnection(); Manifest mf = jarConnection.getManifest(); - Attributes attrs = mf.getAttributes( - "com/sun/star/lib/loader/Loader.class" ); + Attributes attrs = (mf != null) ? mf.getAttributes( + "com/sun/star/lib/loader/Loader.class") : null; if ( attrs != null ) { className = attrs.getValue( "Application-Class" ); if ( className != null ) |