You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@river.apache.org by pe...@apache.org on 2012/11/14 12:12:46 UTC
svn commit: r1409158 -
/river/jtsk/trunk/qa/src/com/sun/jini/test/share/DiscoveryProtocolSimulator.java
Author: peter_firmstone
Date: Wed Nov 14 11:12:46 2012
New Revision: 1409158
URL: http://svn.apache.org/viewvc?rev=1409158&view=rev
Log:
Check for null QAConfig in test.
Modified:
river/jtsk/trunk/qa/src/com/sun/jini/test/share/DiscoveryProtocolSimulator.java
Modified: river/jtsk/trunk/qa/src/com/sun/jini/test/share/DiscoveryProtocolSimulator.java
URL: http://svn.apache.org/viewvc/river/jtsk/trunk/qa/src/com/sun/jini/test/share/DiscoveryProtocolSimulator.java?rev=1409158&r1=1409157&r2=1409158&view=diff
==============================================================================
--- river/jtsk/trunk/qa/src/com/sun/jini/test/share/DiscoveryProtocolSimulator.java (original)
+++ river/jtsk/trunk/qa/src/com/sun/jini/test/share/DiscoveryProtocolSimulator.java Wed Nov 14 11:12:46 2012
@@ -1095,6 +1095,7 @@ public class DiscoveryProtocolSimulator
private void init(QAConfig qaConfig)
throws ActivationException, IOException
{
+ if (qaConfig == null) throw new NullPointerException("QAConfig cannot be null");
String host = System.getProperty("java.rmi.server.hostname");
if (host == null) {
host = InetAddress.getLocalHost().getHostName();