Dynamic test case error: Done operation cannot be performed on the null component reference.
Summary
Dynamic test case error: Done operation cannot be performed on the null component reference.
Steps and/or TTCN-3 code to reproduce
private altstep as_EPTF_Base_stopAllComponents() runs on EPTF_Base_CT_private {
[self==mtc and v_EPTF_Base_stopRemoteSentTo!=null and v_EPTF_Base_stopRemoteSentTo!=mtc] v_EPTF_Base_stopRemoteSentTo.done {
f_EPTF_Base_stopLastComponent(); // if none remains this will not return
repeat;
}
[self==mtc and v_EPTF_Base_stopRemoteSentTo==mtc and v_EPTF_Base_initialized] all component.done {
f_EPTF_Base_stopLastComponent(); // only mtc is alive => stop it
repeat;
}
}
What is the current bug behavior?
Dynamic test case error: Done operation cannot be performed on the null component reference. the location information points to this:
[self==mtc and v_EPTF_Base_stopRemoteSentTo!=null and v_EPTF_Base_stopRemoteSentTo!=mtc] v_EPTF_Base_stopRemoteSentTo.done
But the guard ensures that the v_EPTF_Base_stopRemoteSentTo can't be null
Titan version
nightly version built on 11 R1A - Nov 19 2024
The problem probably caused by this: Fixed altsteps to only calculate local variables and gaurd expressions once per alt (#747)
/cc @aknappqwt @mmagyari
Edited by Gábor Szalai