Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.0.6 GA, 6.0.12 EE, 6.1.1 CE GA2, 6.1.20 EE GA2
    • Component/s: DM
    • Labels:
      None
    • Branch Version/s:
      6.1.x, 6.0.x
    • Backported to Branch:
      Committed
    • Fix Priority:
      3

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

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              lawrence.lee Lawrence Lee
              Reporter:
              sampsa Sampsa Sohlman (Inactive)
              Recent user:
              Esther Sanz
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 24 weeks ago

                Development

                  Subcomponents