Skip to content

NullReferenceException in GetPackage() when apiSettings and IntegrationFrameworkWorkflows is initialized as empty list #137

@TGrigor

Description

@TGrigor

We are experiencing a NullReferenceException when calling GetPackage() after creating a package.

  1. Create a DocumentPackage with the following settings:
    DocumentPackage package = PackageBuilder.NewPackageNamed("Test Package") .WithSettings(DocumentPackageSettingsBuilder.NewDocumentPackageSettings() .Build()) .WithSigner(SignerBuilder.NewSignerWithEmail("test@example.com") .WithFirstName("Test") .WithLastName("User") .WithCustomId("SIGNER_123")) .WithDocument(DocumentBuilder.NewDocumentNamed("test.pdf") .FromStream(documentStream, DocumentType.PDF) .WithSignature(SignatureBuilder.SignatureFor("test@example.com") .OnPage(0) .AtPosition(350, 50))) .Build();

  2. Create the package successfully:
    PackageId packageId = client.CreatePackage(package);

3.Attempt to retrieve the package:
DocumentPackage retrievedPackage = client.GetPackage(packageId); // NullReferenceException here

Expected Behavior:
The GetPackage() method should successfully retrieve the package without throwing a NullReferenceException.

Actual Behavior:
A NullReferenceException is thrown when accessing the IntegrationFrameworkWorkflows field during package retrieval.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions