Skip to content

Commit

Permalink
fix NPE (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
don-vip authored and blackears committed Aug 7, 2018
1 parent faba377 commit d863118
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected Shape shapeToParent(Shape shape)

protected Rectangle2D boundsToParent(Rectangle2D rect)
{
if (xform == null)
if (xform == null || rect == null)
{
return rect;
}
Expand Down

0 comments on commit d863118

Please sign in to comment.