TinaTiel / websocket-obs-java

A java library for the OBS-Studio websocket plugin by Palakis.
MIT License
0 stars 0 forks source link

NullPointerException on close of connection #7

Open TinaTiel opened 3 years ago

TinaTiel commented 3 years ago

When a connection is closed (e.g., when OBS is turned off while connected), a NullPointerException is thrown.

This is caused by making a direct method call on the CallBack; if none is registered, then a NPE results.

TinaTiel commented 3 years ago

See https://github.com/TinaTiel/websocket-obs-java/blob/ba4a6c1954fda9c11a0018d1061d6ae842bcd31b/src/main/java/net/twasi/obsremotejava/OBSCommunicator.java#L160