[
https://issues.apache.org/jira/browse/CASSSIDECAR-476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Miklosovic updated CASSSIDECAR-476:
------------------------------------------
Fix Version/s: 0.5
Source Control Link:
https://github.com/apache/cassandra-sidecar/commit/6a6b43eb0082c20ae62f6e4891a32bf7b3988570
Resolution: Fixed
Status: Resolved (was: Ready to Commit)
> 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
> Fix For: 0.5
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> {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]