[Libreoffice-commits] core.git: jurt/com

Stephan Bergmann sbergman at redhat.com
Fri Jan 22 03:49:34 PST 2016


 jurt/com/sun/star/lib/uno/protocols/urp/urp.java |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit cd9cafe54c87768ddde007228dc1d3f3b7e68f92
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jan 22 12:47:47 2016 +0100

    cid#1326191 is a false positive
    
    and trying to appease Coverity with throwing a (checked---semantics attached!)
    java.io.IOException is plain wrong.
    
    Change-Id: Icece5ac74d482791d089f40ec201bc39d61db177

diff --git a/jurt/com/sun/star/lib/uno/protocols/urp/urp.java b/jurt/com/sun/star/lib/uno/protocols/urp/urp.java
index cea15db..5e7b328 100644
--- a/jurt/com/sun/star/lib/uno/protocols/urp/urp.java
+++ b/jurt/com/sun/star/lib/uno/protocols/urp/urp.java
@@ -619,10 +619,8 @@ public final class urp implements IProtocol {
         for (int i = releaseQueue.size(); i > 0;) {
             --i;
             QueuedRelease r = releaseQueue.get(i);
-            if (r == null)
-              throw new IOException("releaseQueue unexpected empty");
             writeRequest(
-                 r.internal, r.objectId, r.type, r.method, r.threadId, null,
+                r.internal, r.objectId, r.type, r.method, r.threadId, null,
                 false);
             releaseQueue.remove(i);
         }


More information about the Libreoffice-commits mailing list