Skip to content

Fix NPE possibility in SectionIF#214

Open
natalieqle-zz wants to merge 1 commit intoHubSpot:masterfrom
natalieqle-zz:fixNPE
Open

Fix NPE possibility in SectionIF#214
natalieqle-zz wants to merge 1 commit intoHubSpot:masterfrom
natalieqle-zz:fixNPE

Conversation

@natalieqle-zz
Copy link

Updates

In SectionIF.java, text can be null as long as there are fields present. For this case, getText().getText() would throw an NPE, and this is currently happening at the validation step.

To address the above, I added a condition to only perform the second Precondition check if text is not null.

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.

1 participant