We love to be robust.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2897 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-12-09 20:41:23 +00:00
parent ece997e937
commit 5418ffd2fd
@@ -1,5 +1,5 @@
// //
// $Id: InvocationManager.java,v 1.18 2003/10/26 02:45:19 mdb Exp $ // $Id: InvocationManager.java,v 1.19 2003/12/09 20:41:23 mdb Exp $
package com.threerings.presents.server; package com.threerings.presents.server;
@@ -124,6 +124,12 @@ public class InvocationManager
*/ */
public void clearDispatcher (InvocationMarshaller marsh) public void clearDispatcher (InvocationMarshaller marsh)
{ {
if (marsh == null) {
Log.warning("Refusing to unregister null marshaller.");
Thread.dumpStack();
return;
}
if (_dispatchers.remove(marsh.getInvocationCode()) == null) { if (_dispatchers.remove(marsh.getInvocationCode()) == null) {
Log.warning("Requested to remove unregistered marshaller? " + Log.warning("Requested to remove unregistered marshaller? " +
"[marsh=" + marsh + "]."); "[marsh=" + marsh + "].");