[libbluray-devel] Fix null check
hpi1
git at videolan.org
Wed Jun 3 10:37:50 CEST 2015
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Jun 2 15:10:04 2015 +0300| [a001f866a17857740cc0ab5cbbafa959e55088a7] | committer: hpi1
Fix null check
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=a001f866a17857740cc0ab5cbbafa959e55088a7
---
src/libbluray/bdj/java/org/havi/ui/HScene.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/libbluray/bdj/java/org/havi/ui/HScene.java b/src/libbluray/bdj/java/org/havi/ui/HScene.java
index 7937d32..926781a 100644
--- a/src/libbluray/bdj/java/org/havi/ui/HScene.java
+++ b/src/libbluray/bdj/java/org/havi/ui/HScene.java
@@ -239,8 +239,10 @@ public class HScene extends Container implements HComponentOrdering {
}
public synchronized void dispose() {
- if (null != BDJXletContext.getCurrentContext())
- HSceneFactory.getInstance().dispose(this);
+ HSceneFactory sf = HSceneFactory.getInstance();
+ if (sf != null) {
+ sf.dispose(this);
+ }
}
protected void disposeImpl()
More information about the libbluray-devel
mailing list