-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Core DBS
-
Tags:
-
Backlog priority:500
-
Team:PLATFORM
-
Sprint:nxplatform #87, nxplatform #88
-
Story Points:3
A checkedIn document with a baseVersion that doesn't exist anymore, can raise the following NPE during a checkOut operation:
java.lang.NullPointerException: null
at org.nuxeo.ecm.core.versioning.StandardVersioningService.doCheckOut(StandardVersioningService.java:374) ~[nuxeo-core-10.10-HF71.jar:?]
at org.nuxeo.ecm.core.versioning.StandardVersioningService.doPreSave(StandardVersioningService.java:325) ~[nuxeo-core-10.10-HF71.jar:?]
at org.nuxeo.ecm.core.versioning.VersioningComponent.doPreSave(VersioningComponent.java:423) ~[nuxeo-core-10.10-HF71.jar:?]
at org.nuxeo.ecm.core.api.AbstractSession.saveDocument(AbstractSession.java:1613) ~[nuxeo-core-10.10-HF71.jar:?]
This is not a normal state, probably a transient state during deletion or the result of failure during deletion.
StandardVersioningService#doCheckOut could log a warn and ignore the baseVersion instead of raising a NPE.