datastax / simulacron

Simulacron - An Apache Cassandra® Native Protocol Server Simulator
Apache License 2.0
32 stars 13 forks source link

Fix null pointer errors in protocol v5 when using prepared statements #97

Closed joao-r-reis closed 4 years ago

joao-r-reis commented 4 years ago

Also added some logic to the FrameEncoder so that these errors are caught, logged and a server error is returned to the client.

I was able to reproduce the bug with the test that I added.

I also fixed some unit tests that were failing on Windows because of the line separator.

Fixes #96

joao-r-reis commented 4 years ago

After this change all of the C# driver simulacron tests pass locally with protocol v5