Menu

#110 DefaultDrawing.draw(Graphics2D) broken: requires clip region

open
nobody
None
5
2012-08-07
2012-08-07
No

DefaultDrawing.draw(Graphics2D) method is broken: if the passed in Graphics2D object doesn't have clip region set, method throws NullPointerException. Other method DefaultDrawing.draw(Graphics2D, Collection<Figure>) checks if Graphics2D.getClipBounds() == null, but DefaultDrawing.draw(Graphics2D) doesn't which results in NullPointerException at line 55 in DefaultDrawing.java: f.getDrawingArea().intersects(clipRect) -> clipRect cannot be null.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB