Skip to content

lin: throw if SendDynamicResponse is called without InitDynamic - #449

Open
KonradBreitsprecherBkd wants to merge 2 commits into
mainfrom
dev_fix_lin_send_dynamic_response
Open

KonradBreitsprecherBkd wants to merge 2 commits into
mainfrom
dev_fix_lin_send_dynamic_response

Conversation

@KonradBreitsprecherBkd

Copy link
Copy Markdown
Contributor

ThrowIfNotDynamic checked the same condition as ThrowIfDynamic, so SendDynamicResponse on a controller that was not initialized with InitDynamic (or not initialized at all) was silently processed. Invert the check and throw SilKit::StateError, as documented in LinControllerExtensions.hpp.

ThrowIfNotDynamic checked the same condition as ThrowIfDynamic, so
SendDynamicResponse on a controller that was not initialized with
InitDynamic (or not initialized at all) was silently processed. Invert
the check and throw SilKit::StateError, as documented in
LinControllerExtensions.hpp.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Konrad Breitsprecher <Konrad.Breitsprecher@vector.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Konrad Breitsprecher <Konrad.Breitsprecher@vector.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: ready for review Complete and waiting for a reviewer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant