Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NPE in CrosshairOverlay when the label is empty #194

@ebourg

Description

@ebourg

There is a NullPointerException in the drawHorizontalCrosshair and drawVerticalCrosshair methods of CrosshairOverlay when the label is an empty string. This happens because TextUtils.calculateRotatedStringBounds() returns a null Shape for empty strings and the calling methods do not test this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions