diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-20 15:06:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-20 21:18:34 +0100 |
commit | b1e949ed10053a0bcb4b1cb554814b07009e9512 (patch) | |
tree | af2170b4b4cb0195ef6678555ed0745ce594a93c /swext | |
parent | 1bb2c50ff17989c9acff7ab85f47c1480103bd21 (diff) |
coverity#1326963 RV: Bad use of return value
Change-Id: I86aaa7904b3d6e551dcaf0e8d207bea2f2f134c3
Diffstat (limited to 'swext')
-rw-r--r-- | swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java b/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java index 1e89e5c32da6..4c1b340af65a 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java +++ b/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java @@ -365,7 +365,9 @@ public final class WikiEditorImpl extends WeakBase { // remove the temporary file File aFile = new File( new URI( sTemp2Url ) ); - aFile.delete(); + if (!aFile.delete()) { + throw new java.lang.Exception("could not remove" + sTemp2Url); + } } catch ( java.lang.Exception e ) { |