A fix is available
APAR status
Closed as program error.
Error description
Regarding this issue following are the behavior. Customer wants to change the nullvalue checking for the Rhapsody generated code from NULL to 0. For e.g: void CHmiControllerLLSServer::LowLevelSecurityInterface_C::OutBound_C ::requestLedError() { if (itsILLSControl != NULL) { itsILLSControl->requestLedError(); } } To achieve this I have changed the below property CPP_CG::VxWorks::NullValue to "0" OMContainers::StaticArray::InitInCtorBody $Loop { $cname[pos] = 0; } After doing this changes still some more codes are generating as NULL checking. The operation which is used in an interface are basically generating this kind of code. for e.g : In the attcahed model if you search for CHmiControllerLLSServer.cpp you will find many place where it is checking for NULL . (PKG_Design::PSS_HmiController::PKG_D_InterprocessCommunication: :PKG_DA_IPC_LowLevelSecurity) Could you please let me know if there is any other properties I need to cahnge to achieve the same or this is a bug in Rhapsody. Customer is using 7.6 but I have cheked this in 8.2 also and found the same behavior.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * * Rhapsody * **************************************************************** * PROBLEM DESCRIPTION: * * Nullvalue in auto generated code is not changing in some * * cases after property change * **************************************************************** * RECOMMENDATION: * ****************************************************************
Problem conclusion
problem fixed note: in the user model the property CPP_CG::VxWorks_RTP::NullValue should be added (user environment)
Temporary fix
Comments
APAR Information
APAR number
PI74825
Reported component name
TLOGIC RHAPSODY
Reported component ID
5724V74RP
Reported release
760
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2017-01-12
Closed date
2017-06-12
Last modified date
2017-06-12
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
TLOGIC RHAPSODY
Fixed component ID
5724V74RP
Applicable component levels
R760 PSN
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7P9W","label":"Rational Rhapsody"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.6","Line of Business":{"code":"LOB02","label":"AI Applications"}}]
Document Information
Modified date:
19 October 2021