wolfstudy opened a new pull request #182: Fix nil pointer dereference of 
PartitionMetadataResponse
URL: https://github.com/apache/pulsar-client-go/pull/182
 
 
   Signed-off-by: xiaolong.ran <[email protected]>
   
   Fixes #<xyz>
   
   ### Motivation
   
   When the topic is non-partitioned topic, the  
`res.Response.PartitionMetadataResponse` value is nil, so we can't get `Error` 
or `GetPartitions` of `PartitionMetadataResponse`, Otherwise it will cause:
   
   ```
   panic: runtime error: invalid memory address or nil pointer dereference
   [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x84f47a]
   ```
   
   ### Modifications
   
   - Fix nil pointer dereference of PartitionMetadataResponse

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to