Details

    • Branch Version/s:
      6.1.x, 6.0.x
    • Backported to Branch:
      Committed
    • Fix Priority:
      3
    • Similar Issues:
      Show 5 results 

      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.

      https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portlet/documentlibrary/action/GetFileAction.java

      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();
      			}
      		}
      

        Activity

        There are no comments yet on this issue.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 46 weeks, 1 day ago

              Development

                Structure Helper Panel