public void sendWord(Destination dest, BitVector signal) {
if (!dock.isOutputDock()) throw new RuntimeException("sendWord() may only be used at output docks");
if (pending_sendToken) flush_pending();
- pending_path = dock.getPath(dest, signal);
+ pending_path = dest==null ? null : dock.getPath(dest, signal);
flush_pending(true);
}
public void sendWord(Dock dock) { sendWord(dock.getDataDestination()); }