You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2024/03/19 13:37:00 UTC
[jira] [Commented] (AVRO-3956) NPE when calling Protocol#equals or hashCode
[ https://issues.apache.org/jira/browse/AVRO-3956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17828335#comment-17828335 ]
ASF subversion and git services commented on AVRO-3956:
-------------------------------------------------------
Commit dad0d20c5ea10a6347836b3936783fd5124731cc in avro's branch refs/heads/main from Roman Mitasov
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=dad0d20c5 ]
AVRO-3956: [Java] Fix NPE in Protocol#equals (#2791)
* Fix NPE in Protocol#equals
* Better Protocol#hashCode
> NPE when calling Protocol#equals or hashCode
> --------------------------------------------
>
> Key: AVRO-3956
> URL: https://issues.apache.org/jira/browse/AVRO-3956
> Project: Apache Avro
> Issue Type: Bug
> Components: java
> Reporter: Roman Mitasov
> Priority: Major
> Labels: pull-request-available
> Time Spent: 40m
> Remaining Estimate: 0h
>
> As of documentation, {{namespace}} is optional in {{Protocol}} and thus can be {{{}null{}}}. {{Protocol#equals}} contains direct dereference of {{{}namespace{}}}, which causes {{NullPointerException}} when comparing Protocols with {{null}} in {{{}namespace{}}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)