You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Patrick Hunt (JIRA)" <ji...@apache.org> on 2008/11/26 18:42:44 UTC

[jira] Commented: (ZOOKEEPER-240) Yet another npe

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651074#action_12651074 ] 

Patrick Hunt commented on ZOOKEEPER-240:
----------------------------------------

Jute generated toString methods rely on CSVOutputArchive which in turn relies on Jute's Utils.java. the toCSVBuffer doesn't check for null buffer, which it should.

Note: if you fix this (add null check to toCSVBuffer) please be sure to review the rest of the code in Utils.java for similar problem(s).


> Yet another npe
> ---------------
>
>                 Key: ZOOKEEPER-240
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-240
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: java client
>    Affects Versions: 3.0.1
>            Reporter: Flavio Paiva Junqueira
>             Fix For: 3.1.0
>
>
> java.lang.NullPointerException
> 	at org.apache.jute.Utils.toCSVBuffer(Utils.java:234)
> 	at org.apache.jute.CsvOutputArchive.writeBuffer(CsvOutputArchive.java:101)
> 	at org.apache.zookeeper.proto.GetDataResponse.toString(GetDataResponse.java:48)
> 	at java.lang.String.valueOf(String.java:2827)
> 	at java.lang.StringBuilder.append(StringBuilder.java:115)
> 	at org.apache.zookeeper.ClientCnxn$Packet.toString(ClientCnxn.java:230)
> 	at java.lang.String.valueOf(String.java:2827)
> 	at java.lang.StringBuilder.append(StringBuilder.java:115)
> 	at org.apache.zookeeper.ClientCnxn$SendThread.readResponse(ClientCnxn.java:586)
> 	at org.apache.zookeeper.ClientCnxn$SendThread.doIO(ClientCnxn.java:626)
> 	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:852)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.