Crash in some strange case of drawing with no points
Opened this issue · 0 comments
RunYouCleverBoy commented
/**
* Setup circles on a screen
*/
private void drawLineToTouchPoint(Canvas canvas) {
if (touchPoint.height() > 0 && touchPoint.width() > 0) {
drawLine(canvas, circles[connectionOrder.get(connectionOrder.size() - 1)], touchPoint);
}
}
Forgot to check that !connectionOrder.isEmpty()
It may crash if the view refreshes when you your finger on, and it's blank.