You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "Martin Tzvetanov Grigorov (Jira)" <ji...@apache.org> on 2024/03/19 13:38:00 UTC
[jira] [Resolved] (AVRO-3956) NPE when calling Protocol#equals or hashCode
[ https://issues.apache.org/jira/browse/AVRO-3956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Tzvetanov Grigorov resolved AVRO-3956.
---------------------------------------------
Fix Version/s: 1.12.0
Assignee: Oscar Westra van Holthe - Kind
Resolution: Fixed
> 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
> Assignee: Oscar Westra van Holthe - Kind
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.12.0
>
> Time Spent: 50m
> 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)