Open bashdi opened 1 month ago
@bashdi Can you create a pr on the mapepire client with a test that will verify this fix?
I had to make a small change but the fix seems to be working and is safe to merge IMO
@bashdi , I am curious however, how you encountered this issue? Were you testing the server directly, or was this exposed through one of the clients?
@ThePrez I issued the task of building a mapepire client to a trainee. He triggered this crash with a direct webscoket connection and/or postman.
Sending a request where the type needs additional json-properties leads to a NullPointerException which crashes the application.
Example:
{"id":"1","type":"execute"}
I fixed it with passing the current instance instead of null to the BadReq-constructor like it was done with all the other ClientRequest-Types.