fixed a NullPointerException

This commit is contained in:
hneemann 2016-04-10 16:21:51 +02:00
parent 789c496be4
commit 68ff8c506a

View File

@ -169,7 +169,8 @@ public class CircuitComponent extends JComponent {
* @param drawables the list of drawables
*/
public void addHighLighted(Collection<? extends Drawable> drawables) {
highLighted.addAll(drawables);
if (drawables != null)
highLighted.addAll(drawables);
}
/**