libbluray | branch: master | hpi1 <[email protected]> | 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) {

_______________________________________________
libbluray-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libbluray-devel

Reply via email to