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: [email protected]
For additional commands, e-mail: [email protected]