IBM Support

PM34308: GETDIRECTPARENT THROWS NULLPOINTEREXCEPTION IN A CUSTOM WORKFLOW ACTION FOR DRAFT ITEM

 

APAR status

  • Closed as program error.

Error description

  • -create a custom workflow action, call
    "content.getDirectParent();" from the execute
    method.
    -workflow with at least two workflow stages:
    Draft & Published.
    -add a workflow action to Draft --> Custom Workflow
    Action containing the problem-code & Published: a standard
    publish workflow action.
    
    It throws exception similar to as
    
    CustomActionD W   <Null Message> java.lang.NullPointerException
            at
    com.ibm.workplace.wcm.api.WCM_APIContentService.getLegacyParentI
    d(WCM_AP IContentService.java:250)
            at
    com.ibm.workplace.wcm.api.WCM_APIContentService.getLegacyParentI
    d(WCM_AP IContentService.java:209)
            at
    com.ibm.workplace.wcm.api.WCM_Content.getParentId(WCM_Content.ja
    va:89)
            at
    com.ibm.workplace.wcm.api.WCM_Content.getDirectParent(WCM_Conten
    t.java:3
    

Local fix

Problem summary

  • -create a custom workflow action, call
    "content.getDirectParent();" from the execute
    method.
    -workflow with at least two workflow stages:
    Draft & Published.
    -add a workflow action to Draft --> Custom Workflow
    Action containing the problem-code & Published: a standard
    publish workflow action.
    
    It throws exception similar to as
    
    CustomActionD W   <Null Message> java.lang.NullPointerException
    

Problem conclusion

  • Code was updated to fix the NPE.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM34308

  • Reported component name

    LOTUS WEB CONT

  • Reported component ID

    5724I2900

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-03-09

  • Closed date

    2011-06-27

  • Last modified date

    2011-06-27

  • 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

    LOTUS WEB CONT

  • Fixed component ID

    5724I2900

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU051","label":"N\/A"},"Product":{"code":"SUPPORT","label":"IBM Web Content Manager"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB33","label":"N\/A"}}]

Document Information

Modified date:
21 December 2021