fixed bug of error print out of "No JunctionPlanner ...etc"

dp2041 [2002-10-28 06:45:59]
fixed bug of error print out of "No JunctionPlanner ...etc"
Filename
WVM.java
diff --git a/WVM.java b/WVM.java
index 1fe9197..f9f6fcf 100644
--- a/WVM.java
+++ b/WVM.java
@@ -668,7 +668,10 @@ public final class WVM extends Thread {
      * @param wj: related {@link WorkletJunction}
      */
     public void log(String message, WorkletJunction wj){
-      _wvmLog.addElement(new Date() + ": " + message + wj + "." + wj.id() + ": " + wj.sstate());
+      if (wj._junctionPlanner != null)
+	_wvmLog.addElement(new Date() + ": " + message + wj + "." + wj.id() + ": " + wj.sstate());
+      else
+	_wvmLog.addElement(new Date() + ": " + message + wj + "." + wj.id());
     }

     /** Prints some stats about the WVM */