Author: peter_firmstone
Date: Sun May 12 07:54:40 2013
New Revision: 1481484

URL: http://svn.apache.org/r1481484
Log:
Fix NullPointerException caused by attempt to start null threads - new code, 
caused com/sun/jini/test/impl/reggie/MultihomedClientTest.td
     [java] Test Failed: Test Failed with an Unexpected Exception: 
java.lang.Exception: Test failed


Modified:
    
river/jtsk/skunk/qa_refactor/trunk/src/net/jini/discovery/AbstractLookupDiscovery.java

Modified: 
river/jtsk/skunk/qa_refactor/trunk/src/net/jini/discovery/AbstractLookupDiscovery.java
URL: 
http://svn.apache.org/viewvc/river/jtsk/skunk/qa_refactor/trunk/src/net/jini/discovery/AbstractLookupDiscovery.java?rev=1481484&r1=1481483&r2=1481484&view=diff
==============================================================================
--- 
river/jtsk/skunk/qa_refactor/trunk/src/net/jini/discovery/AbstractLookupDiscovery.java
 (original)
+++ 
river/jtsk/skunk/qa_refactor/trunk/src/net/jini/discovery/AbstractLookupDiscovery.java
 Sun May 12 07:54:40 2013
@@ -1623,9 +1623,11 @@ abstract class AbstractLookupDiscovery i
             if (!all_groups || !this.groups.isEmpty()) {
                 requestGroups(this.groups);
             }//end if
-            announceeThread.start();
-            announcementTimerThread.start();
-            notifierThread.start();
+            if (nicsToUse != NICS_USE_NONE) {
+                announceeThread.start();
+                announcementTimerThread.start();
+                notifierThread.start();
+            }
             started = true;
         }
     }


Reply via email to