You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The at.session.Session class has helper methods to do different at commands.
They are: action, read, test, and set.
Each of these helper methods create a corresponding at.session.Command object. The at.session.Command objects take a Duration as an input parameter, but the helper classes take a Duration? as a parameter and passes it along without a null check. This can lead to a type-check failure at runtime.
The erroneous code:
class Command:
...
timeout/Duration
constructor.action .name --.timeout=DEFAULT_TIMEOUT:
type = ACTION_
...
class Session:
...
/**
Executes an `action` command with the $command_name.
*/
action command_name/string --timeout/Duration?=null -> Result:
return send
Command.action command_name --timeout=timeout
...
The text was updated successfully, but these errors were encountered:
Can you show us a stack trace from where this goes wrong and maybe the SDK version where you see this? It is okay to pass null as an argument to a method with a non-nullable parameter if it has a default value.
The at.session.Session class has helper methods to do different at commands.
They are: action, read, test, and set.
Each of these helper methods create a corresponding at.session.Command object. The at.session.Command objects take a Duration as an input parameter, but the helper classes take a Duration? as a parameter and passes it along without a null check. This can lead to a type-check failure at runtime.
The erroneous code:
The text was updated successfully, but these errors were encountered: