[libbluray-devel] Check for null
hpi1
git at videolan.org
Sun Feb 19 12:27:39 CET 2017
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Jan 10 10:27:41 2017 +0200| [375c163fd59e7b96cb13b00847fc43c1fd7f52a7] | committer: hpi1
Check for null
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=375c163fd59e7b96cb13b00847fc43c1fd7f52a7
---
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 bba6056..bbc150d 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJLoader.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJLoader.java
@@ -325,7 +325,9 @@ public class BDJLoader {
while (ids.hasMoreElements()) {
AppID id = (AppID)ids.nextElement();
BDJAppProxy proxy = (BDJAppProxy)db.getAppProxy(id);
- proxy.release();
+ if (proxy != null) {
+ proxy.release();
+ }
}
((BDJAppsDatabase)db).newDatabase(null, null);
More information about the libbluray-devel
mailing list