Skip to content

Prevent NPEs in SectionIF check#206

Merged
szabowexler merged 1 commit intomasterfrom
change-section-check
Nov 20, 2020
Merged

Prevent NPEs in SectionIF check#206
szabowexler merged 1 commit intomasterfrom
change-section-check

Conversation

@ks3057
Copy link
Copy Markdown

@ks3057 ks3057 commented Nov 19, 2020

Currently, we are fetching text length isTextLengthValid before we check if the text is null and this results in an unnecessary NPE. This PR fixes the order of the checks.

@ks3057 ks3057 requested a review from szabowexler November 19, 2020 22:48
@ks3057 ks3057 changed the title Change order of Preconditions checks in SectionsIF Prevent NPEs in SectionsIF check Nov 19, 2020
@ks3057 ks3057 changed the title Prevent NPEs in SectionsIF check Prevent NPEs in SectionIF check Nov 19, 2020
@szabowexler szabowexler merged commit 704f72e into master Nov 20, 2020
@szabowexler szabowexler deleted the change-section-check branch November 20, 2020 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants