Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDK-3328] Fix classCastException from while reading PE variable #497

Merged

Conversation

shivamsharma2710
Copy link
Contributor

Issue Summary:
When a PE variable of Long type is defined with a null default value, and the dashboard overrides it with a Double value, The SDK throws a ClassCastException (Double cannot be cast to Long).

Fix:
Restricted the null usage as default value for PE variables.

…fineVariable API

Issue has been fixed by restricting null values as default when defining the PE variables
Copy link
Contributor

@Anush-Shand Anush-Shand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Anush-Shand Anush-Shand marked this pull request as ready for review December 21, 2023 13:01
…ernal Var#define method

This adjustment ensures that the condition is applied to annotated variables as well.
@Anush-Shand
Copy link
Contributor

Unit tests are failing @shivamsharma2710

Copy link
Contributor

@Anush-Shand Anush-Shand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Anush-Shand Anush-Shand merged commit 31de9c8 into develop Dec 22, 2023
4 checks passed
@piyush-kukadiya piyush-kukadiya deleted the task/SDK-3328/fix_classCastException_in_defineVariable_API branch September 9, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants