Skip to content

Java: Add org.apache.commons.lang3.StringUtils.isBlank as a nullguard.#643

Merged
yh-semmle merged 1 commit into
github:masterfrom
aschackmull:java/nullguard-isblank
Dec 7, 2018
Merged

Java: Add org.apache.commons.lang3.StringUtils.isBlank as a nullguard.#643
yh-semmle merged 1 commit into
github:masterfrom
aschackmull:java/nullguard-isblank

Conversation

@aschackmull

Copy link
Copy Markdown
Contributor

Reported on https://discuss.lgtm.com/t/false-positive-java-variable-xxx-may-be-null-here-because-of-this/1599/2.

In the glorious future, byte code extraction could yield a more robust solution to this, but in the meantime let's just whack this particular mole.

@aschackmull aschackmull requested a review from a team as a code owner December 7, 2018 15:36

@yh-semmle yh-semmle left a comment

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.

Sensible short-term solution.

@yh-semmle yh-semmle merged commit ba4fa0a into github:master Dec 7, 2018
@aschackmull aschackmull deleted the java/nullguard-isblank branch December 10, 2018 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants