jnan77 / jsonrpc4j

Automatically exported from code.google.com/p/jsonrpc4j
0 stars 0 forks source link

JSON-RPC notification requests causes NPE in JsonRpcServer #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
All JSON-RPC notification requests (no id field) results in a NPE in 
JsonRpcServer:

java.lang.NullPointerException
at com.googlecode.jsonrpc4j.JsonRpcServer.handleObject(JsonRpcServer.java:249)

There is already code to handle notification requests, but it's missing a null 
check. I've created a one line patch and added a test case to verify the 
behaviour.

Original issue reported on code.google.com by hansj...@gmail.com on 17 Nov 2011 at 4:23

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks, I'll take a look at it today.  There are a number of other 
patches\fixes that I'd like to get in today.  If i can manage it, i'll do 
another release.

Original comment by brian.di...@gmail.com on 18 Nov 2011 at 3:47

GoogleCodeExporter commented 8 years ago
committed, will be included in next release.

Thanks.

Original comment by brian.di...@gmail.com on 18 Nov 2011 at 6:40

GoogleCodeExporter commented 8 years ago

Original comment by brian.di...@gmail.com on 25 May 2012 at 2:51

GoogleCodeExporter commented 8 years ago

Original comment by brian.di...@gmail.com on 26 May 2012 at 2:44