Update of /cvsroot/pyxida/AsyncJ/src/edu/harvard/syrah/sbon/async/comm/obj
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31373/src/edu/harvard/syrah/sbon/async/comm/obj
Modified Files:
ObjComm.java
Log Message:
Check for null destaddr in ObjComm sendMsg
Index: ObjComm.java
===================================================================
RCS file: /cvsroot/pyxida/AsyncJ/src/edu/harvard/syrah/sbon/async/comm/obj/ObjComm.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ObjComm.java 4 Jun 2007 17:55:40 -0000 1.1
--- ObjComm.java 20 Jul 2007 13:32:29 -0000 1.2
***************
*** 90,95 ****
// log.debug("Sending msg=" + message);
// log.debug(" destAddr=" + destAddr);
! assert destAddr instanceof NetAddress : "Can only send messages to NetAddresses.";
if (getLocalAddress() == null) {
--- 90,97 ----
// log.debug("Sending msg=" + message);
// log.debug(" destAddr=" + destAddr);
+
+ assert destAddr != null : "DestAddr is null";
! assert destAddr instanceof NetAddress : "Can only send messages to NetAddresses (addr=" + destAddr + ")";
if (getLocalAddress() == null) {
|