HCL-TECH-SOFTWARE / domino-jnx

Modern Domino Java API based on JNA access to Domino's C API
https://opensource.hcltechsw.com/domino-jnx/
Apache License 2.0
13 stars 3 forks source link

Null value in initArgs array causes NSD crash... #433

Open sbasegmez opened 3 months ago

sbasegmez commented 3 months ago

I accidentally sent a null value in the initArgs array, which causes a crash at this line.

I'm not sure if this issue is platform-specific (I'm using an M1 Pro), but I suspect submitting a null entry to the C-API might be problematic. Adding a null check could help prevent this.

String[] initArgs = new String[]{ System.getenv("Notes_ExecDirectory") };
DominoProcess.get().initializeProcess(initArgs);