We are experiencing a NullReferenceException when calling GetPackage() after creating a package.
-
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();
-
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.
We are experiencing a NullReferenceException when calling GetPackage() after creating a package.
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();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.