[libbluray-devel] Check for null

hpi1 git at videolan.org
Mon Mar 23 09:32:43 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Mar 23 10:31:10 2015 +0200| [cd1fd534aad3267d5d9f10dcb001a3e5c7dd2c42] | committer: hpi1

Check for null

Avoid dumping useless exception when initializatiion failed

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

 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 9b368d4..f5429aa 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJLoader.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJLoader.java
@@ -104,7 +104,9 @@ public class BDJLoader {
 
     protected static void shutdown() {
         try {
-            queue.shutdown();
+            if (queue != null) {
+                queue.shutdown();
+            }
         } catch (Throwable e) {
             logger.error("shutdown() failed: " + e + "\n" + Logger.dumpStack(e));
         }



More information about the libbluray-devel mailing list