[libbluray-devel] Check for null

hpi1 git at videolan.org
Mon Nov 17 11:44:46 CET 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Nov 17 12:44:34 2014 +0200| [2fc21ba4b8c0e580938ea05599e7d95b09de6c3f] | committer: hpi1

Check for null

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=2fc21ba4b8c0e580938ea05599e7d95b09de6c3f
---

 .../bdj/java/javax/tv/service/navigation/SIElementFilter.java       |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/java/javax/tv/service/navigation/SIElementFilter.java b/src/libbluray/bdj/java/javax/tv/service/navigation/SIElementFilter.java
index 2734205..fdfa128 100644
--- a/src/libbluray/bdj/java/javax/tv/service/navigation/SIElementFilter.java
+++ b/src/libbluray/bdj/java/javax/tv/service/navigation/SIElementFilter.java
@@ -54,7 +54,8 @@ public final class SIElementFilter extends ServiceFilter
         
         // if we still don't have a response just cancel the request
         if (!requestor.getResponse()) {
-            req.cancel();
+            if (req != null)
+                req.cancel();
         }
         
         if (requestor.getResult() == null)



More information about the libbluray-devel mailing list