abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aurelien Pupier (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ABDERA-397) BaseRequestEntity.getCOntentLength throws NPE instead of realException
Date Mon, 04 Aug 2014 15:48:15 GMT
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)

Mime
View raw message