Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mbastian committed Jan 24, 2022
1 parent 71e8d77 commit dfe4e05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ private void checkColorAlpha(ObjectList<? extends ElementDraft> objectList, Stri
int validElement = 0;
int withAlphaZero = 0;
for (ElementDraft element : objectList) {
if (element.getColor() != null) {
if (element != null && element.getColor() != null) {
validElement++;
withAlphaZero += element.getColor().getAlpha() == 0 ? 1 : 0;
}
Expand Down

0 comments on commit dfe4e05

Please sign in to comment.