[
https://issues.apache.org/jira/browse/CASSSIDECAR-476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18089901#comment-18089901
]
Stefan Miklosovic commented on CASSSIDECAR-476:
-----------------------------------------------
https://app.circleci.com/pipelines/github/smiklosovic/cassandra-sidecar/40
> 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
> Components: Configuration
> Reporter: Paulo Motta
> Assignee: Paulo Motta
> Priority: Major
>
> {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]