Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 6.0.6 GA, 6.0.12 EE, 6.1.1 CE GA2, 6.1.20 EE GA2
-
Fix Version/s: 6.0.X EE, 6.1.X EE, 6.2.0 CE M3
-
Component/s: DM, DM > Document Library Display
-
Labels:None
-
Branch Version/s:6.1.x, 6.0.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Similar Issues:
Description
I have client query that they got error Liferay CE 6.0.6
14:47:50,728 ERROR [jsp:996] java.lang.NullPointerException
java.lang.NullPointerException
at com.liferay.portlet.documentlibrary.action.GetFileAction.getFile(GetFileAction.java:199)
at com.liferay.portlet.documentlibrary.action.GetFileAction.strutsExecute(GetFileAction.java:84)
at com.liferay.portal.struts.PortletAction.execute(PortletAction.java:100)
There is message post same kind of error : http://www.liferay.com/community/forums/-/message_boards/message/10277464
By reading code from the trunk the possible the error is still there.
Line 231:
if (Validator.isNull(version)) { if (Validator.isNotNull(fileEntry.getVersion())) { version = fileEntry.getVersion(); } else { throw new NoSuchFileEntryException(); } }
correct would be
if (Validator.isNull(version)) { if (fileEntry!=null&& Validator.isNotNull(fileEntry.getVersion())) { version = fileEntry.getVersion(); } else { throw new NoSuchFileEntryException(); } }
