MUnit tests fail to run and a NullPointerException error is thrown
Salesforce closed this issue.
Summary
When running Munit tests, the application is not deployed, no tests are run and NullPointerException error is thrown.
A YAML file is used for parameterization and is found to be the cause of the problem. If parametrization is defined at a configuration level of the test suite module, bypassing the YAML file then the application is deployed and the MUnit tests run successfully. The YAML file looks to be correctly configured.
Workaround
We haven't loaded the full details for this issue yet. Check the official page.
History
First tracked here as Closed with 2 reports
Nov 30, 2026
Also open in MUnit
Error namespace already exists when running MUnit tests on runtime 4.5.1 Or 4.5.2
Solution ScheduledMuleSoft / MUnitMS Mule Runtime 4.5.0Reported Nov 29, 202327 reports27reports
Munit Test Recording fails with Java17
Solution ScheduledMuleSoft / MUnitReported Jul 16, 20249 reports9reports
Build with java17 fails with DefaultEmbeddedControllerProvider not a subtype
Solution ScheduledMuleSoft / MUnitReported Sep 16, 20246 reports6reports
MUnit 3.1.0 is failing with NPE on specific condition
Solution ScheduledMuleSoft / MUnitReported May 10, 20246 reports6reports