Add some null checker branch on dli-loader which can be nullptr
Change-Id: I716b21f041a712bc66a31471c1fd9ae966ecc6b3
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
if(tnValue)
{
animProp.mValue.reset(new AnimatedProperty::Value{ReadPropertyValue(*tnValue)});
if(tnValue)
{
animProp.mValue.reset(new AnimatedProperty::Value{ReadPropertyValue(*tnValue)});
+ ReadBool(tnProperty.GetChild("relative"), animProp.mValue->mIsRelative);
}
else
{
mOnError(FormatString("Property '%s' fails to define target value.",
animProp.mPropertyName.c_str()));
}
}
else
{
mOnError(FormatString("Property '%s' fails to define target value.",
animProp.mPropertyName.c_str()));
}
-
- ReadBool(tnProperty.GetChild("relative"), animProp.mValue->mIsRelative);
}
animDef.mProperties.push_back(std::move(animProp));
}
animDef.mProperties.push_back(std::move(animProp));