Skip to content
  • Jakob Schöttl's avatar
    48ea54f2
    Use Agent.getNextTargetId() method · 48ea54f2
    Jakob Schöttl authored
    There was a
    assert targetIds.size() > 0
    
    That means, this case is not expected, right?
    Why is this case handled then in the next lines?
    
    I switched the assert statement against getNextTargetId() which throws
    an exception if there is no next target.
    
    Use hasNextTarget() if you have to check this.
    48ea54f2
    Use Agent.getNextTargetId() method
    Jakob Schöttl authored
    There was a
    assert targetIds.size() > 0
    
    That means, this case is not expected, right?
    Why is this case handled then in the next lines?
    
    I switched the assert statement against getNextTargetId() which throws
    an exception if there is no next target.
    
    Use hasNextTarget() if you have to check this.
Loading