IBM Support

PH14942: IDZ 14.1.7 - ENABLING FORMAT SOURCE CODE FOR PL/I MEMBER WITH PREPROCESSOR STATEMENTS RESULTS IN EXCEPTION DURING SAVE

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • In IBM Developer for z Systems (IDz) v14.1.7, editing a member
    with preprocessor statements in PL/I editor while the "Format
    source code" is enabled for "Save Actions" (Window > Preferences
    > PL/I > Editor > Save Actions > Format source code), results in
    NullPointerException when the member is saved. The following
    exception trace can be seen in the error log file
    (<workspace>\.metadata\.log):
    java.lang.NullPointerException
    	at
    com.ibm.systemz.pl1.editor.jface.editor.formatter.Pl1Indentation
    Visitor.visit(Pl1IndentationVisitor.java:157)
    	at
    com.ibm.systemz.pl1.editor.core.parser.Ast.ProcedureBlock.accept
    (ProcedureBlock.java:57)
    	at
    com.ibm.systemz.pl1.editor.core.parser.Ast.ProgramBlock.accept(P
    rogramBlock.java:55)
    	at
    com.ibm.systemz.pl1.editor.core.parser.Ast.AbstractPl1StructureV
    isitor.visit(AbstractPl1StructureVisitor.java:17)
    	at
    com.ibm.systemz.pl1.editor.core.parser.Ast.Pl1SourceProgram.ente
    r(Pl1SourceProgram.java:100)
    	at
    com.ibm.systemz.pl1.editor.core.parser.Ast.Pl1SourceProgramList.
    enter(Pl1SourceProgramList.java:95)
    	at
    com.ibm.systemz.pl1.editor.core.parser.Ast.Pl1SourceProgramList.
    accept(Pl1SourceProgramList.java:83)
    	at
    com.ibm.systemz.pl1.editor.jface.editor.formatter.Pl1Indentation
    Visitor.reload(Pl1IndentationVisitor.java:110)
    	at
    com.ibm.systemz.pl1.editor.jface.editor.formatter.Pl1Indentation
    Formatter.indentRegion(Pl1IndentationFormatter.java:63)
    	at
    com.ibm.systemz.pl1.editor.jface.editor.formatter.Pl1FormattingS
    trategy.createFormatEdit(Pl1FormattingStrategy.java:199)
    	at
    com.ibm.systemz.pl1.editor.jface.editor.Pl1Editor.doSave(Pl1Edit
    or.java:829)
    

Local fix

  • Disable "Format source code" in the PL/I editor "Save Actions"
    preferences.
    

Problem summary

  • Null Pointer exception when trying to save.
    

Problem conclusion

  • This issue has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH14942

  • Reported component name

    DEV FOR Z SYS

  • Reported component ID

    5724T0700

  • Reported release

    E10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-07-25

  • Closed date

    2019-12-10

  • Last modified date

    2019-12-10

  • 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

    DEV FOR Z SYS

  • Fixed component ID

    5724T0700

Applicable component levels

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSJK49","label":"IBM Developer for z Systems"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"E10","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
10 December 2019