Null Pointer Exception on Processing Business Interaction if a Char is Removed from Specification (Doc ID 2191550.1)

Last updated on OCTOBER 11, 2016

Applies to:

Oracle Communications Unified Inventory Management - Version 7.3.2.0.0 and later
Information in this document applies to any platform.
Consider a Business Interaction (BI) with Char A. Create BI & before processing update the specification to remove Char A. Redeploy the cartridge for the changes to take effect.
Now process the BI & you will receive the following error:

java.lang.NullPointerException
at oracle.communications.inventory.api.characteristic.impl.CharacteristicManagerImpl.validate(CharacteristicManagerImpl.java:1392)
at oracle.communications.inventory.api.characteristic.impl.CharacteristicManagerImpl.validate(CharacteristicManagerImpl.java:1492)
at oracle.communications.inventory.api.common.BaseInvManager.validate(BaseInvManager.java:690)
at oracle.communications.inventory.api.common.BaseInvManager.updateEntity(BaseInvManager.java:647)
at oracle.communications.inventory.api.businessinteraction.impl.BusinessInteractionManagerImpl.addChildBusinessInteraction(BusinessInteractionManagerImpl.java:1332)
at oracle.communications.inventory.api.businessinteraction.impl.BusinessInteractionManagerImpl.addChildBusinessInteraction_aroundBody6(BusinessInteractionManagerImpl.java:1294)
at oracle.communications.inventory.api.businessinteraction.impl.BusinessInteractionManagerImpl$AjcClosure7.run(BusinessInteractionManagerImpl.java:1)

Goal

How do you prevent the Null Pointer Exception of Business Interaction when any characteristic is removed from Specification?
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms