naviens / recaptcha

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

Java lib should allow null parameters #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call reCaptcha.checkAnswer(getRequest().getRemoteAddr(), null, null);

What is the expected output? What do you see instead?
I would expect this to return a ReCaptchaResponse where .isValid() returns
false.  Instead, this throws a null pointer exception.  

What version of the product are you using?
recaptcha4j-0.0.7.jar

Please provide any additional information below.
The reason this should be handled is someone could modify the request so
that it doesn't provide these parameters.  In that case, it would be much
cleaner to consider the response as invalid than cause an error.

Original issue reported on code.google.com by tie...@gmail.com on 13 Apr 2008 at 10:42

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
this codes working to joomla?

because http://premiumjoomla.net and http://premiumdrupal.net my websites and 
this codes dont work :(

Original comment by wordpresspremiumus@gmail.com on 16 Sep 2010 at 12:38

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
please issue my mail id

Original comment by gokulsaini5 on 20 Sep 2013 at 10:13

Attachments: