[Remoterengine-commits] r162 - pkg/RemoteREngine/inst/java_src/src/server/org/rosuda/REngine/remote/server

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sun Sep 20 18:35:16 CEST 2009


Author: ian_long
Date: 2009-09-20 18:35:16 +0200 (Sun, 20 Sep 2009)
New Revision: 162

Modified:
   pkg/RemoteREngine/inst/java_src/src/server/org/rosuda/REngine/remote/server/RemoteREngine_Server.java
Log:
Prevent chain of NullPointerExceptions following a failure in the engine startup

Modified: pkg/RemoteREngine/inst/java_src/src/server/org/rosuda/REngine/remote/server/RemoteREngine_Server.java
===================================================================
--- pkg/RemoteREngine/inst/java_src/src/server/org/rosuda/REngine/remote/server/RemoteREngine_Server.java	2009-09-20 15:46:45 UTC (rev 161)
+++ pkg/RemoteREngine/inst/java_src/src/server/org/rosuda/REngine/remote/server/RemoteREngine_Server.java	2009-09-20 16:35:16 UTC (rev 162)
@@ -568,7 +568,7 @@
 	 * @see Rengine#rniIdle()
 	 */
 	public void rniIdle(){
-		r.getRni().rniIdle() ;
+		if ((r != null) && (r.getRni() != null ))r.getRni().rniIdle() ;
 	}
 
 	/**



More information about the Remoterengine-commits mailing list