Fixed NullPointerException caused by ComponentListModel
This commit is contained in:
parent
1fef10769f
commit
b46bfd1181
@ -33,8 +33,10 @@ public final class ComponentListModel<E> implements Iterable<E>, Serializable {
|
|||||||
* @since Envoy v0.3-alpha
|
* @since Envoy v0.3-alpha
|
||||||
*/
|
*/
|
||||||
public boolean add(E e) {
|
public boolean add(E e) {
|
||||||
if (componentList != null) componentList.add(e);
|
if (componentList != null) {
|
||||||
componentList.revalidate();
|
componentList.add(e);
|
||||||
|
componentList.revalidate();
|
||||||
|
}
|
||||||
return elements.add(e);
|
return elements.add(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user