openlvc / disco

Java library for Distributed Interactive Simulation
11 stars 3 forks source link

Fix NPE when stop called on non-started connection #58

Closed jarrodgreene closed 2 years ago

jarrodgreene commented 2 years ago

If stop was called on a rpr connection that hadn't been started yet, e.g. because start had previously failed, then a null pointer exception was thrown. A null check is now made on shutdown to prevent this.

Fixes: CNR-2032

michaelrfraser commented 2 years ago

Thanks Jarrod, looks good!