Showing
1 changed file
with
5 additions
and
6 deletions
... | ... | @@ -5,11 +5,7 @@ import javax.faces.component.UIComponentBase; |
5 | 5 | import javax.faces.component.UIForm; |
6 | 6 | import javax.faces.component.UIInput; |
7 | 7 | import javax.faces.context.FacesContext; |
8 | -import java.util.ArrayList; | |
9 | -import java.util.HashSet; | |
10 | -import java.util.Iterator; | |
11 | -import java.util.List; | |
12 | -import java.util.Set; | |
8 | +import java.util.*; | |
13 | 9 | |
14 | 10 | public abstract class UIFocus extends UIComponentBase { |
15 | 11 | // ------------------------------ FIELDS ------------------------------ |
... | ... | @@ -80,7 +76,10 @@ public abstract class UIFocus extends UIComponentBase { |
80 | 76 | Set<String> allowedClientIds = new HashSet<String>(); |
81 | 77 | Iterator<String> clientIdsWithMessages = getFacesContext().getClientIdsWithMessages(); |
82 | 78 | while (clientIdsWithMessages.hasNext()) { |
83 | - allowedClientIds.add(clientIdsWithMessages.next()); | |
79 | + final String clientId = clientIdsWithMessages.next(); | |
80 | + if (clientId != null) { | |
81 | + allowedClientIds.add(clientId); | |
82 | + } | |
84 | 83 | } |
85 | 84 | final List<UIInput> inputs = new ArrayList<UIInput>(); |
86 | 85 | getInputs(getParentForm(this), allowedClientIds, inputs); | ... | ... |
Please
register
or
login
to post a comment