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