incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awi...@apache.org
Subject svn commit: r513057 - /incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXComponentBase.java
Date Wed, 28 Feb 2007 23:22:07 GMT
Author: awiner
Date: Wed Feb 28 15:22:06 2007
New Revision: 513057

URL: http://svn.apache.org/viewvc?view=rev&rev=513057
Log:
UIXComponentBase.findComponent(): if an intermediate step can't be found, return null instead
of throwing an IllegalArgumentException.

Modified:
    incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXComponentBase.java

Modified: incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXComponentBase.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXComponentBase.java?view=diff&rev=513057&r1=513056&r2=513057
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXComponentBase.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXComponentBase.java
Wed Feb 28 15:22:06 2007
@@ -474,6 +474,9 @@
     // and then ask it to find the rest of the expression.
     else
     {
+      if (from == null)
+        return null;
+
       if (!(from instanceof NamingContainer))
         throw new IllegalArgumentException();
       return from.findComponent(id.substring(separatorIndex + 1));



Mime
View raw message