mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-17 08:55:05 -04:00
fixed a NullPointerException
This commit is contained in:
parent
789c496be4
commit
68ff8c506a
@ -169,6 +169,7 @@ 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) {
|
||||||
|
if (drawables != null)
|
||||||
highLighted.addAll(drawables);
|
highLighted.addAll(drawables);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user