Closed mvogelgesang closed 6 months ago
Thanks for reporting. Are you reporting that Apex has this issue, or that the ESLint plugin should accommodate the issue and tell you to remove a space in this case?
Spoke with @mvogelgesang and the issue is not reproducible, please let us know if you run into this again in the future!
When calling Apex imperatively within an LWC, an object is used to pass params. However, if a space between the key and value is missing, Apex will report a null pointer exception. For example:
This can be overcome by setting format on save in the IDE but if that is not enabled, there is not a clear indication to the developer that there is an issue.