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
[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report
[ ] Performance issue
[ ] Feature request (generic to all classes)
[ ] Documentation issue or request
[ ] Other... Please describe:
Attempting to instantiate any subclass of com.amazon.ask.model.interfaces.alexa.presentation.apl.Command fails with a NullPointerException.
Expected Behavior
I should be able to instantiate a command class correctly, For example, the following code should complete successfully: IdleCommand command = IdleCommand.builder().withDelay(42).build();
Current Behavior
The above code throws a NullPointerException.
Possible Solution
The issue appears to be from commit bddf618, which introduced String.valueOf(null) as the default value for the delay field. String.valueOf(null) is not correct code as it will always throw a NullPointerException. This default value should be removed.
Steps to Reproduce (for bugs)
// Provide a self-contained, concise snippet of code using the SDK.
// For more complex issues provide a repo with the smallest sample that reproduces the bug
// Including business logic or unrelated code makes diagnosis more difficult
See above example.
Context
This bug is fairly critical as it prevents the use of any APL commands via alexa/alexa-skills-kit-sdk-for-java version 2.20.0 or later, which relies on this library.
Your Environment
ASK SDK Models for Java used: 1.18.0
ASK SDK for Java used: 2.20.0
Operating System and version: macOS 10.14.5 / OpenJDK 11.0.2
The text was updated successfully, but these errors were encountered:
I'm submitting a...
Attempting to instantiate any subclass of
com.amazon.ask.model.interfaces.alexa.presentation.apl.Command
fails with a NullPointerException.Expected Behavior
I should be able to instantiate a command class correctly, For example, the following code should complete successfully:
IdleCommand command = IdleCommand.builder().withDelay(42).build();
Current Behavior
The above code throws a NullPointerException.
Possible Solution
The issue appears to be from commit bddf618, which introduced
String.valueOf(null)
as the default value for thedelay
field.String.valueOf(null)
is not correct code as it will always throw a NullPointerException. This default value should be removed.Steps to Reproduce (for bugs)
See above example.
Context
This bug is fairly critical as it prevents the use of any APL commands via alexa/alexa-skills-kit-sdk-for-java version 2.20.0 or later, which relies on this library.
Your Environment
The text was updated successfully, but these errors were encountered: