You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Roman Mitasov (Jira)" <ji...@apache.org> on 2024/03/07 07:21:00 UTC

[jira] [Created] (AVRO-3956) NPE when calling Protocol#equals or hashCode

Roman Mitasov created AVRO-3956:
-----------------------------------

             Summary: 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


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)