Skip to content

Null pointer in NetLicensing client code #1

@DimaWhite

Description

@DimaWhite

I tried creating a test setup, and get an null exception!  (Not a great programming experience)  My code is as follows:

                ValidationParameters validationParameters = new ValidationParameters();
                validationParameters.setLicenseeName(demoLicenseeName);
                validationParameters.setProductNumber(demoProductNumber);
                validationParameters.setLicenseeSecret(demoLicenseeSecret);
                validationParameters.put(demoProductModuleNumber, "paramKey", "paramValue");
                context.securityMode = SecutiryMode.APIKEY_IDENTIFICATION;
                ValidationResult validationResult = LicenseeService.validate(context, demoLicenseeNumber, validationParameters);

Can I created everything in the account...  Can you please take a look and tell me why this occurred?

Thanks!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions