mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-15 15:58:41 -04:00
fixed a NullPointerException
This commit is contained in:
parent
789c496be4
commit
68ff8c506a
@ -169,7 +169,8 @@ public class CircuitComponent extends JComponent {
|
|||||||
* @param drawables the list of drawables
|
* @param drawables the list of drawables
|
||||||
*/
|
*/
|
||||||
public void addHighLighted(Collection<? extends Drawable> drawables) {
|
public void addHighLighted(Collection<? extends Drawable> drawables) {
|
||||||
highLighted.addAll(drawables);
|
if (drawables != null)
|
||||||
|
highLighted.addAll(drawables);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user