You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/07/25 06:40:10 UTC

[GitHub] [pulsar] sijie opened a new issue #4804: KeyValue schema doesn't handle null key and null value well

sijie opened a new issue #4804: KeyValue schema doesn't handle null key and null value well
URL: https://github.com/apache/pulsar/issues/4804
 
 
   **Describe the bug**
   
   Similar as #4803, it is impossible to specify null key or null value in KeyValue schema. It throws exception as below:
   
   ```
   java.lang.NullPointerException
   	at java.util.Base64$Encoder.encode(Base64.java:261)
   	at java.util.Base64$Encoder.encodeToString(Base64.java:315)
   	at org.apache.pulsar.client.impl.TypedMessageBuilderImpl.value(TypedMessageBuilderImpl.java:109)
   ```
   
   
   **To Reproduce**
   
   ```
   producer.newMessage().value(new KeyValue(null, "test-value")).send();
   ```
   
   **Expected behavior**
   
   Be able to support `null` key and `null` value.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services