[libbluray-devel] IxcRegistryImpl: log missing context

hpi1 git at videolan.org
Tue Dec 10 10:24:49 CET 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Dec 10 10:50:21 2013 +0200| [d01b210e2de3f7d081e134b18a513366ee84b550] | committer: hpi1

IxcRegistryImpl: log missing context

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

 src/libbluray/bdj/java/org/videolan/IxcRegistryImpl.java |   13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/libbluray/bdj/java/org/videolan/IxcRegistryImpl.java b/src/libbluray/bdj/java/org/videolan/IxcRegistryImpl.java
index 4e1cd91..c3802f3 100644
--- a/src/libbluray/bdj/java/org/videolan/IxcRegistryImpl.java
+++ b/src/libbluray/bdj/java/org/videolan/IxcRegistryImpl.java
@@ -52,6 +52,13 @@ public class IxcRegistryImpl {
         if (toContext == remoteObj.context) {
             return remoteObj.object;
         }
+        if (toContext == null) {
+            logger.error("toContext is null");
+            return remoteObj.object;
+        }
+        if (remoteObj.context == null) {
+            logger.error("remote context is null");
+        }
 
         InvocationHandler handler = new RemoteObjectInvocationHandler(remoteObj);
         ClassLoader cl = ((BDJXletContext)toContext).getClassLoader();
@@ -210,6 +217,12 @@ public class IxcRegistryImpl {
                 throws RemoteException {
 
                 callerContext  = BDJXletContext.getCurrentContext();
+                if (callerContext == null) {
+                    logger.error("caller context is null");
+                }
+                if (context == null) {
+                    logger.error("callee context is null");
+                }
                 calleeContext  = context;
                 methodInCallee = findMethodInCallee(method);
                 if (null != args) {



More information about the libbluray-devel mailing list