[libbluray-devel] Fix BDJXletContext.getContainer(): throw UnavailableContainer when container is not set or proxy has been released .
hpi1
git at videolan.org
Sun Apr 14 15:08:59 CEST 2013
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Apr 12 10:51:53 2013 +0300| [0157b3c37fddea4a374485c3bb9eff8dd4f71e30] | committer: hpi1
Fix BDJXletContext.getContainer(): throw UnavailableContainer when container is not set or proxy has been released.
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=0157b3c37fddea4a374485c3bb9eff8dd4f71e30
---
src/libbluray/bdj/java/org/videolan/BDJXletContext.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/libbluray/bdj/java/org/videolan/BDJXletContext.java b/src/libbluray/bdj/java/org/videolan/BDJXletContext.java
index 718dc3a..bda49c1 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJXletContext.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJXletContext.java
@@ -82,6 +82,10 @@ public class BDJXletContext implements javax.tv.xlet.XletContext, javax.microedi
}
public Container getContainer() throws UnavailableContainerException {
+ if (container == null) {
+ logger.error("getContainer(): container is null");
+ throw new UnavailableContainerException();
+ }
return container;
}
@@ -161,6 +165,8 @@ public class BDJXletContext implements javax.tv.xlet.XletContext, javax.microedi
if (eq != null) {
java.awt.BDJHelper.stopEventQueue(eq);
}
+
+ container = null;
}
private String[] args;
@@ -170,4 +176,5 @@ public class BDJXletContext implements javax.tv.xlet.XletContext, javax.microedi
private EventQueue eventQueue = null;
private HSceneFactory sceneFactory = null;
private BDJThreadGroup threadGroup = null;
+ private static final Logger logger = Logger.getLogger(BDJXletContext.class.getName());
}
More information about the libbluray-devel
mailing list