The documentation of commUser.getPosition()
advices to return Optional.absent()
if no position can be determined. Yet, lines 170 in CommRenderer
throws an exception if commUser.getPosition()
is absent:
helper.fillCircle(user.getPosition().get(), DOT_RADIUS);
The method exampleCommunicationAgent.getPosition()
returns absence, if RoadUser
is not on roadmap - which happens sometimes, but I cannot pinpoint when exactly. It might have something to do with increasing the speed, but I can't reproduce it reliably.