Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.8RC1
-
Component/s: Sample Apps
-
Labels:None
-
Environment:portals portlets
-
Affects:Sample App./Tutorial
Description
This exception is thrown when trying to download PDF files or the image.
java.lang.NullPointerException
org.icefaces.application.showcase.view.bean.examples.component.outputResource.OutputResourceBean.toByteArray(OutputResourceBean.java:77)
org.icefaces.application.showcase.view.bean.examples.component.outputResource.MyResource.open(OutputResourceBean.java:108)
java.lang.NullPointerException
org.icefaces.application.showcase.view.bean.examples.component.outputResource.OutputResourceBean.toByteArray(OutputResourceBean.java:77)
org.icefaces.application.showcase.view.bean.examples.component.outputResource.MyResource.open(OutputResourceBean.java:108)
Checked in change that uses JSF APIs to get the resources. Quickly tested on Liferay 5.2.1 as well as plain Tomcat 6 to ensure it works in both environments.