diff --git a/frameworks/src/core/components/chart_component.cpp b/frameworks/src/core/components/chart_component.cpp index 0221ddd..e3a7134 100755 --- a/frameworks/src/core/components/chart_component.cpp +++ b/frameworks/src/core/components/chart_component.cpp @@ -90,7 +90,7 @@ bool ChartComponent::CreateNativeViews() } ReleaseJerryValue(hasTypeProp, typeStrHandler, attrsPropValue, VA_ARG_END_FLAG); if (!strcmp(chartType_, LINE)) { - if (chartView_) { + if (chartView_ != nullptr) { delete (chartView_); chartView_ = nullptr; }