[libbluray-devel] Check for null

hpi1 git at videolan.org
Mon Apr 3 14:24:26 CEST 2017


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Apr  3 14:58:30 2017 +0300| [f9b401f740342d05f755badbca6605f09ce13fea] | committer: hpi1

Check for null

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

 src/libbluray/bdj/java/org/videolan/BDJLoader.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/java/org/videolan/BDJLoader.java b/src/libbluray/bdj/java/org/videolan/BDJLoader.java
index 84cb0ae..fae2397 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJLoader.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJLoader.java
@@ -318,7 +318,9 @@ public class BDJLoader {
             while (ids.hasMoreElements()) {
                 AppID id = (AppID)ids.nextElement();
                 BDJAppProxy proxy = (BDJAppProxy)db.getAppProxy(id);
-                proxy.stop(true);
+                if (proxy != null) {
+                    proxy.stop(true);
+                }
             }
 
             ids = db.getAppIDs(new CurrentServiceFilter());



More information about the libbluray-devel mailing list