Skip to content

I have a DivisionByZeroError due to a null value in the division #3530

@mmanzano

Description

@mmanzano

This line is protecting us from 0.0 value but not for null values. Is there a reason to not think about an scenario where $rightValue could be null?

if ($rightValue === 0.0) {

I have problems due to that when I use tailwind in order to styling a document. In my end when I remove the line @tailwind components the issue is gone so I don't know if something is wrong in Tailwind. I've tried to change the condition to $rightValue === null || $rightValue === 0.0 and it works. Could I make a PR with this?. I'm asking because maybe I'm missing something. I don't want to do the PR without explaining my reasoning before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions