Aurelien Pupier created ABDERA-397:
--------------------------------------
Summary: BaseRequestEntity.getCOntentLength throws NPE instead of
realException
Key: ABDERA-397
URL: https://issues.apache.org/jira/browse/ABDERA-397
Project: Abdera
Issue Type: Bug
Affects Versions: 1.1.2
Reporter: Aurelien Pupier
if (buf == null) {
try {
final ByteArrayOutputStream out = new
ByteArrayOutputStream();
base.writeTo(out);
buf = out.toByteArray();
} catch (final Exception e) {
//Here exception is caught and hide forever
}
}
return buf.length; //if there was an exception buf is null and we
have a NPE
--
This message was sent by Atlassian JIRA
(v6.2#6252)