myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1547603 - /myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheetLayout.java
Date Tue, 03 Dec 2013 21:55:47 GMT
Author: lofwyr
Date: Tue Dec  3 21:55:46 2013
New Revision: 1547603

URL: http://svn.apache.org/r1547603
Log:
quick fix, prevent NPE

Modified:
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheetLayout.java

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheetLayout.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheetLayout.java?rev=1547603&r1=1547602&r2=1547603&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheetLayout.java
(original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheetLayout.java
Tue Dec  3 21:55:46 2013
@@ -382,6 +382,10 @@ public abstract class AbstractUISheetLay
   private void layoutHeader() {
     final AbstractUISheet sheet = (AbstractUISheet) getLayoutContainer();
     final UIComponent header = sheet.getHeader();
+    if (header == null) {
+      LOG.warn("This should not happen. Please file a bug in the issue tracker to reproduce
this case.");
+      return;
+    }
     final LayoutTokens columns = new LayoutTokens();
     final List<AbstractUIColumn> renderedColumns = sheet.getRenderedColumns();
     for (final AbstractUIColumn ignored : renderedColumns) {



Mime
View raw message