Some additional info:
Whilst debugging a JaamSim run with Julia external program, the crash happens in `EventManager.java` at below location (first line):
```
// If the next event is at the current tick, execute it
if (nextNode.schedTick == currentTick.get()) { // <= Crash happens here.
// Remove the event from the future events
Event nextEvent = nextNode.head;
ProcessTarget nextTarget = nextEvent.target;
if (trcListener != null) {
disableSchedule();
trcListener.traceEvent(nextNode.schedTick, nextNode.priority, nextTarget);
enableSchedule();
}
```
The java debugger produces this msg:
```
...
ExternalProgramServer1:
Stream closed
Stack trace:
com.jaamsim.basicsim.Entity.error(Entity.java:1092)
com.jaamsim.BasicObjects.ExternalProgramServer.addEntity(ExternalProgramServer.java:226)
com.jaamsim.ProcessFlow.LinkedDevice.sendToNextComponent(LinkedDevice.java:138)
com.jaamsim.ProcessFlow.EntityConveyor.processStep(EntityConveyor.java:336)
com.jaamsim.ProcessFlow.Device.endStep(Device.java:238)
com.jaamsim.ProcessFlow.Device$EndStepTarget.process(Device.java:217)
com.jaamsim.events.EventManager.executeTarget(EventManager.java:179)
com.jaamsim.events.EventManager.execute(EventManager.java:273)
com.jaamsim.events.Process.run(Process.java:98)
Exception in thread "processthread-1" java.lang.NullPointerException: Cannot read field "proc" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null
at com.jaamsim.events.EventManager.execute(EventManager.java:277)
at com.jaamsim.events.Process.run(Process.java:98)
```
Somehow the `currentTick.get()` is null when using Julia ...