You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Andy Tolbert (Jira)" <ji...@apache.org> on 2025/05/11 19:18:00 UTC

[jira] [Updated] (CASSGO-74) Calling Close() on a nil session panics

     [ https://issues.apache.org/jira/browse/CASSGO-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Tolbert updated CASSGO-74:
-------------------------------
     Bug Category: Parent values: Correctness(12982)
       Complexity: Low Hanging Fruit
      Component/s: Core
    Discovered By: Unit Test
         Severity: Low
         Assignee: Tyler Schade
           Status: Open  (was: Triage Needed)

> Calling Close() on a nil session panics
> ---------------------------------------
>
>                 Key: CASSGO-74
>                 URL: https://issues.apache.org/jira/browse/CASSGO-74
>             Project: Apache Cassandra Go driver
>          Issue Type: Bug
>          Components: Core
>            Reporter: Tyler Schade
>            Assignee: Tyler Schade
>            Priority: Normal
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The {{Session}} type does not guard against method calls on a nil pointer, which is understandable in most cases. However, the {{Close}} method doesn't have any work to do if the `Session` is nil, and could be easily guarded against panicking.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org