NPE during OST generation due to malformed local custom object file

Issue #2462 resolved
Scott Wells repo owner created an issue

A user reported an issue that prevents OST generation where a local custom object file is not being properly deserialized from XML resulting in a downstream NPE due to not being properly defensive against such a situation. The stack trace is:

java.lang.NullPointerException: Cannot invoke "com.sforce.soap.metadata.CustomObject.getLabel()" because "<parameter1>" is null
    at com.illuminatedcloud.symtab.OfflineSymbolTable.createDocumentation(SourceFile:3266)
    at com.illuminatedcloud.symtab.OfflineSymbolTable.lambda$loadSObjectClasses$11(SourceFile:1617)
    at com.illuminatedcloud.symtab.OfflineSymbolTable.runActivityStep(SourceFile:807)
    at com.illuminatedcloud.symtab.OfflineSymbolTable.runActivityStep(SourceFile:831)
    at com.illuminatedcloud.symtab.OfflineSymbolTable.lambda$loadSObjectClasses$12(SourceFile:1496)
    at com.illuminatedcloud.symtab.OfflineSymbolTable.runActivity(SourceFile:755)
    at com.illuminatedcloud.symtab.OfflineSymbolTable.runActivity(SourceFile:782)
    at com.illuminatedcloud.symtab.OfflineSymbolTable.loadSObjectClasses(SourceFile:1483)
    at com.illuminatedcloud.symtab.OfflineSymbolTable.generateOfflineSymbolTable(SourceFile:985)
    at com.illuminatedcloud.intellij.settings.project.OfflineSymbolTableGenerator$2.run(SourceFile:224)

Comments (2)

  1. Scott Wells reporter

    This is 2.2.8.9 plus a fix for the NPE. It can be installed by downloading the attached archive (please do not extract it) and using Settings / Preferences | Plugins | Install plugin from disk (under the gear drop-down menu). Restart the IDE and try to generate the OST. Please let me know if the problem is in fact resolved or not.

  2. Log in to comment