Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-14176

Fix NPE retrieving currentDocumentVersionInfo when current document is not set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.9.3-SNAPSHOT
    • Fix Version/s: 5.8.0-HF18, 5.9.3
    • Component/s: Seam / JSF UI

      Description

      The following stack trace is seen in error logs:

      Caused by: java.lang.NullPointerException
      	at org.nuxeo.ecm.platform.versioning.service.VersioningManagerImpl.getVersionLabel(VersioningManagerImpl.java:78)
      	at org.nuxeo.ecm.webapp.versioning.DocumentVersioningBean.getCurrentDocumentVersionInfo(DocumentVersioningBean.java:133)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
      	at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
      	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
      

      (see NXP-14175)

      This should be safer when current document is null.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: