You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Paulo Motta (Jira)" <ji...@apache.org> on 2026/06/16 15:48:00 UTC

[jira] [Created] (CASSSIDECAR-476) Fix SpotBugs null pointer dereference warning in ClusterOpsDatabaseAccessorIntegrationTest

Paulo Motta created CASSSIDECAR-476:
---------------------------------------

             Summary: Fix SpotBugs null pointer dereference warning in ClusterOpsDatabaseAccessorIntegrationTest
                 Key: CASSSIDECAR-476
                 URL: https://issues.apache.org/jira/browse/CASSSIDECAR-476
             Project: Sidecar for Apache Cassandra
          Issue Type: Task
            Reporter: Paulo Motta
            Assignee: Paulo Motta


{noformat}
> Task :server:spotbugsIntegrationTest FAILED

M D NP: Possible null pointer dereference in org.apache.cassandra.sidecar.db.ClusterOpsDatabaseAccessorIntegrationTest.testCrudOperations() due to return value of called method  Dereferenced at ClusterOpsDatabaseAccessorIntegrationTest.java:[line 115]

Execution failed for task ':server:spotbugsIntegrationTest'.
> A failure occurred while executing com.github.spotbugs.snom.internal.SpotBugsRunnerForHybrid$SpotBugsExecutor
   > Verification failed: SpotBugs ended with exit code 1.
{noformat}

The return value of {{accessor.findJob()}} on line 114 is dereferenced on line 115 without a null check. Added an explicit {{assertThat(...).isNotNull()}} assertion before accessing fields on the result.




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