You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2007/07/23 12:01:11 UTC

svn commit: r558678 - /myfaces/core/branches/1_2_1/impl/src/main/java/org/apache/myfaces/taglib/core/SubviewTag.java

Author: matzew
Date: Mon Jul 23 03:01:10 2007
New Revision: 558678

URL: http://svn.apache.org/viewvc?view=rev&rev=558678
Log:
fixed null pointer

Modified:
    myfaces/core/branches/1_2_1/impl/src/main/java/org/apache/myfaces/taglib/core/SubviewTag.java

Modified: myfaces/core/branches/1_2_1/impl/src/main/java/org/apache/myfaces/taglib/core/SubviewTag.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/1_2_1/impl/src/main/java/org/apache/myfaces/taglib/core/SubviewTag.java?view=diff&rev=558678&r1=558677&r2=558678
==============================================================================
--- myfaces/core/branches/1_2_1/impl/src/main/java/org/apache/myfaces/taglib/core/SubviewTag.java (original)
+++ myfaces/core/branches/1_2_1/impl/src/main/java/org/apache/myfaces/taglib/core/SubviewTag.java Mon Jul 23 03:01:10 2007
@@ -62,7 +62,7 @@
         {
             ViewResponseWrapper wrappedResponse = (ViewResponseWrapper) response;
             wrappedOutput = wrappedResponse.toString();
-            if (wrappedOutput.length() > 0)
+            if (wrappedOutput != null && wrappedOutput.length() > 0)
             {
                 String componentvalue = null;
                 if (component != null)