From e39bf3677109976cae13e1bdff044e2d5769c098 Mon Sep 17 00:00:00 2001 From: jan iversen Date: Thu, 21 Jan 2016 19:54:46 +0100 Subject: cid#1326191, 1326202 Null references elements, introduced throw Change-Id: I22bf7de5f20c3ca455df31de2a5d7301b436ed82 Reviewed-on: https://gerrit.libreoffice.org/21691 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- jurt/com/sun/star/lib/uno/protocols/urp/urp.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'jurt/com') 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 5e7b3288866c..cea15dbf1b2b 100644 --- a/jurt/com/sun/star/lib/uno/protocols/urp/urp.java +++ b/jurt/com/sun/star/lib/uno/protocols/urp/urp.java @@ -619,8 +619,10 @@ 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); } -- cgit