Author: nbelaevski
Date: 2008-04-27 14:57:51 -0400 (Sun, 27 Apr 2008)
New Revision: 8215
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java
Log:
http://jira.jboss.com/jira/browse/RF-3113
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java
===================================================================
---
trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java 2008-04-26
11:33:42 UTC (rev 8214)
+++
trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java 2008-04-27
18:57:51 UTC (rev 8215)
@@ -842,6 +842,15 @@
*/
public UIComponent findComponentFor(UIComponent component,
String id) {
+
+ if (id == null) {
+ throw new NullPointerException("id is null!");
+ }
+
+ if (id.length() == 0) {
+ return null;
+ }
+
UIComponent target = null;
UIComponent parent = component;
UIComponent root = component;