[seam-commits] Seam SVN: r14179 - branches/community/Seam_2_3/jboss-seam-excel/src/main/java/org/jboss/seam/excel/ui.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Sep 12 14:57:22 EDT 2011


Author: manaRH
Date: 2011-09-12 14:57:21 -0400 (Mon, 12 Sep 2011)
New Revision: 14179

Modified:
   branches/community/Seam_2_3/jboss-seam-excel/src/main/java/org/jboss/seam/excel/ui/UIWorkbook.java
Log:
JBSEAM-4664 fixed NPE

Modified: branches/community/Seam_2_3/jboss-seam-excel/src/main/java/org/jboss/seam/excel/ui/UIWorkbook.java
===================================================================
--- branches/community/Seam_2_3/jboss-seam-excel/src/main/java/org/jboss/seam/excel/ui/UIWorkbook.java	2011-09-09 09:03:23 UTC (rev 14178)
+++ branches/community/Seam_2_3/jboss-seam-excel/src/main/java/org/jboss/seam/excel/ui/UIWorkbook.java	2011-09-12 18:57:21 UTC (rev 14179)
@@ -303,7 +303,6 @@
       this.useTemporaryFileDuringWrite = useTemporaryFileDuringWrite;
    }
 
-   @SuppressWarnings("unchecked")
    @Override
    public void encodeBegin(javax.faces.context.FacesContext facesContext) throws IOException
    {
@@ -331,10 +330,10 @@
 
       DocumentData documentData = new ByteArrayDocumentData(baseName, type, bytes);
       documentData.setFilename(getFilename());
-      String dispositionValue = getDisposition().toString();
+      Boolean dispositionValue = getDisposition();
       if (dispositionValue != null)
       {
-         documentData.setDisposition(dispositionValue);
+         documentData.setDisposition(dispositionValue.toString());
       }
 
       if (getExportKey() != null)



More information about the seam-commits mailing list