CleverTap / clevertap-android-sdk

CleverTap Android SDK
MIT License
80 stars 74 forks source link

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

Closed shivamsharma2710 closed 11 months ago

shivamsharma2710 commented 1 year ago

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.

Anush-Shand commented 11 months ago

Unit tests are failing @shivamsharma2710