Skip to content

Fix NPEs#1170

Merged
marcingrzejszczak merged 1 commit intospring-cloud:masterfrom
anatoliy-balakirev:fix-npes
Aug 13, 2019
Merged

Fix NPEs#1170
marcingrzejszczak merged 1 commit intospring-cloud:masterfrom
anatoliy-balakirev:fix-npes

Conversation

@anatoliy-balakirev
Copy link
Copy Markdown
Contributor

Found a couple of NPEs while testing something else.

return this.value instanceof RegexProperty
? ((RegexProperty) this.value).pattern() : this.value.toString();
if (this.value == null) {
return "";
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is what needs to be returned here...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be no such option that null is passed in. We can leave ""

@marcingrzejszczak
Copy link
Copy Markdown
Contributor

Can you rebase against master and try to build it again with the new base image for circleci?

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 13, 2019

Codecov Report

Merging #1170 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff             @@
##             master   #1170      +/-   ##
===========================================
- Coverage      2.27%   2.26%   -0.01%     
  Complexity       18      18              
===========================================
  Files            60      60              
  Lines          2158    2161       +3     
  Branches        134     135       +1     
===========================================
  Hits             49      49              
- Misses         2101    2104       +3     
  Partials          8       8
Impacted Files Coverage Δ Complexity Δ
...cloud/contract/spec/internal/OptionalProperty.java 0% <0%> (ø) 0 <0> (ø) ⬇️

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 74eed14...2a0a425. Read the comment docs.

@anatoliy-balakirev
Copy link
Copy Markdown
Contributor Author

@marcingrzejszczak seems to be the same after rebase.

@marcingrzejszczak
Copy link
Copy Markdown
Contributor

Jacoco was the culprit. Please rebase and it should work fine.

@marcingrzejszczak marcingrzejszczak merged commit ca72481 into spring-cloud:master Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants