Skip to content

Fix parentStyle must not be null#923

Merged
maxme merged 1 commit intodevelopfrom
issue/831-re-instante-style-null-check
Aug 27, 2020
Merged

Fix parentStyle must not be null#923
maxme merged 1 commit intodevelopfrom
issue/831-re-instante-style-null-check

Conversation

@mzorz
Copy link
Copy Markdown
Contributor

@mzorz mzorz commented Aug 25, 2020

Closes #831

Fix

When we reverted this here #882, we unintentionally also removed the fix in #832, because it was stack-added on purpose as explained in this conversation (we could only get to properly test the conditions for #834 with monkeys when that patch was first in place).

This PR just cherry-picks the original commit to restore things.

Copying from the original PR #832:

Just added a null check that prevents a crash from happening. The formatting will not be added if such a condition is met, but that's far better than crashing.

Test

No testing needed, but you can run the monkeys to verify (could follow the steps provided in #834)

Make sure strings will be translated:

  • If there are new strings that have to be translated, I have added them to the client's strings.xml as a part of the integration PR.

@mzorz mzorz requested review from hypest, marecar3 and maxme August 25, 2020 13:59
Copy link
Copy Markdown
Contributor

@maxme maxme left a comment

Choose a reason for hiding this comment

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

It seems to have been reverted unintentionally in #882 - this is the same patch as #832 (I ran the monkeys in the sample app before the patch and couldn't trigger the crash.)

:shipit:

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.

Crash: IllegalStateException: parentStyle must not be null

2 participants