[opencms-dev] NPE in CmsWebdavServlet 8.0.1
Jose San Leandro
jose.sanleandro at ventura24.es
Thu Feb 16 10:05:18 CET 2012
Hi,
OpenCMS 8.0.1 is complaining with the following stack trace:
java.lang.NullPointerException
at
org.opencms.webdav.CmsWebdavServlet.generateLockDiscovery(CmsWebdavServlet.java:3022)
at
org.opencms.webdav.CmsWebdavServlet.parseProperties(CmsWebdavServlet.java:3421)
at
org.opencms.webdav.CmsWebdavServlet.doPropfind(CmsWebdavServlet.java:1909)
at
org.opencms.webdav.CmsWebdavServlet.service(CmsWebdavServlet.java:2868)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
Checking the source code (which I assume corresponds to
https://github.com/alkacon/opencms-core/blob/e9937a9b7c16206d72289114a056493734b72bc3/src/org/opencms/webdav/CmsWebdavServlet.java):
private boolean generateLockDiscovery(String path, Element elem,
HttpServletRequest req) {
-> CmsRepositoryLockInfo lock = m_session.getLock(path);
if (lock != null) {
Element lockElem = addElement(elem, TAG_LOCKDISCOVERY);
addLockElement(lock, lockElem, generateLockToken(req, lock));
return true;
}
return false;
}
So it seems m_session is null. Any ideas why this could be happening?
More information about the opencms-dev
mailing list