Closed GoogleCodeExporter closed 9 years ago
Suggest null checks and possibly log and throw some type of exception instead of
causing an NPE...
if( key!= null && value != null){
sb.append(URLEncoder.encode(key, "UTF-8")+kvDelim
+URLEncoder.encode(value, "UTF-8"));
if (iter.hasNext()) {
sb.append(lineDelim);
}
}else{
// do some error handling here
}
Original comment by tod...@us.ibm.com
on 29 Mar 2008 at 1:44
In r97, I've added code to throw an OpenIdException if there is a null value.
A null
key is quite a bit more disastrous, so we'll still get an NPE in that case.
Original comment by barryf...@gmail.com
on 20 Aug 2008 at 6:34
Original issue reported on code.google.com by
tod...@us.ibm.com
on 29 Mar 2008 at 1:42