diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-15 10:13:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-15 11:38:56 +0100 |
commit | abe51680360ad0d7fc67862b80f406d484bcf0a4 (patch) | |
tree | 39d2fd140bcbac1498b196460d2ab8e3a40a4d72 /xmerge | |
parent | 5513e1cff5953865aee4111c9adab8765ab18cdb (diff) |
coverity#1326285 Dereference after null check
Change-Id: I20c0cf4ad14252fdbf9a73c7675a0704e8a03823
Diffstat (limited to 'xmerge')
-rw-r--r-- | xmerge/source/bridge/java/XMergeBridge.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xmerge/source/bridge/java/XMergeBridge.java b/xmerge/source/bridge/java/XMergeBridge.java index fbdea40f0170..6cf8497dd9eb 100644 --- a/xmerge/source/bridge/java/XMergeBridge.java +++ b/xmerge/source/bridge/java/XMergeBridge.java @@ -193,17 +193,14 @@ public class XMergeBridge { XParser xParser = UnoRuntime.queryInterface( XParser.class , xSaxParserObj ); - if (xParser==null){ - System.out.println("\nParser creation Failed"); - } xOutStream.closeOutput(); InputSource aInput = new InputSource(); if (sFileName==null){ sFileName=""; - } + } aInput.sSystemId = sFileName; aInput.aInputStream =xInStream; - xParser.setDocumentHandler ( xDocHandler ); + xParser.setDocumentHandler ( xDocHandler ); xParser.parseStream ( aInput ); xOutStream.closeOutput(); |