Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 6, 2025. It is now read-only.

Conversation

@derlin
Copy link
Contributor

@derlin derlin commented Oct 11, 2022

Make the CollectionContains.test function return false on a null input, instead of throwing a NullPointerException.

Fixes #283.

@GCHQDeveloper314 GCHQDeveloper314 changed the title Make CollectionContains::test support null Gh-283: Make CollectionContains::test support null Oct 13, 2022
@t92549
Copy link
Contributor

t92549 commented Oct 13, 2022

This is just failing on copyright headers being out of date, and it explains what is wrong in the GitHub ci output.
You should be able to run mvn spotless:apply to fix it though.

Make the `CollectionContains.test` function return `false` on a null
input, instead of throwing a `NullPointerException`.
@derlin derlin force-pushed the input-contains-null branch from 6296c23 to 805a83e Compare October 13, 2022 10:56
@CLAassistant
Copy link

CLAassistant commented Oct 13, 2022

CLA assistant check
All committers have signed the CLA.

@derlin
Copy link
Contributor Author

derlin commented Oct 13, 2022

@t92549 I ran the mvn spotless:apply command and updated my commit :)

@codecov-commenter
Copy link

Codecov Report

Merging #284 (805a83e) into develop (f91f89d) will increase coverage by 0.95%.
The diff coverage is 81.13%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop     #284      +/-   ##
=============================================
+ Coverage      81.13%   82.08%   +0.95%     
- Complexity      1534     1616      +82     
=============================================
  Files            185      194       +9     
  Lines           4268     4316      +48     
  Branches         430      435       +5     
=============================================
+ Hits            3463     3543      +80     
+ Misses           627      592      -35     
- Partials         178      181       +3     
Impacted Files Coverage Δ
...main/java/uk/gov/gchq/koryphe/adapted/Adapted.java 89.47% <ø> (ø)
...java/uk/gov/gchq/koryphe/adapted/InputAdapted.java 100.00% <ø> (ø)
...hq/koryphe/adapted/StateAgnosticOutputAdapter.java 100.00% <ø> (ø)
.../koryphe/binaryoperator/AdaptedBinaryOperator.java 100.00% <ø> (ø)
...gchq/koryphe/binaryoperator/BinaryOperatorMap.java 69.23% <ø> (ø)
.../koryphe/binaryoperator/KorypheBinaryOperator.java 88.88% <ø> (-11.12%) ⬇️
.../java/uk/gov/gchq/koryphe/composite/Composite.java 86.95% <ø> (ø)
.../uk/gov/gchq/koryphe/function/AdaptedFunction.java 64.28% <ø> (ø)
...java/uk/gov/gchq/koryphe/function/FunctionMap.java 60.00% <ø> (ø)
.../uk/gov/gchq/koryphe/function/KorypheFunction.java 100.00% <ø> (ø)
... and 96 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8f04588...805a83e. Read the comment docs.

@t92549 t92549 merged commit 2453263 into gchq:develop Oct 13, 2022
@t92549
Copy link
Contributor

t92549 commented Oct 13, 2022

@derlin Thanks again for the contribution!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NullPointerException in CollectionContains

4 participants