Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw IllegalArgumentException when removing null child from figure
The Figure#remove() method throws a NullPointerException when trying to remove a "null" child, due to a call to figure.getParent(). To remain consistent with the case where the child belongs to a different parent, this should also throw an IllegalArgumentException.
- Loading branch information