jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JCR-2969) FileDataStore garbage collection can throw a NullPointerException if there is I/O problem
Date Fri, 13 May 2011 08:25:48 GMT

     [ https://issues.apache.org/jira/browse/JCR-2969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Thomas Mueller resolved JCR-2969.
---------------------------------

    Resolution: Fixed

> FileDataStore garbage collection can throw a NullPointerException if there is I/O problem
> -----------------------------------------------------------------------------------------
>
>                 Key: JCR-2969
>                 URL: https://issues.apache.org/jira/browse/JCR-2969
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Minor
>             Fix For: 2.3.0
>
>
> The FileDataStore can throw a NPE when doing garbage collection, if there is file I/O
problem (for example an access rights problem). The reason is that it doesn't check if File.list
/ listFiles returns null. Stack trace:
> Exception in thread "Thread-461" java.lang.NullPointerException
> 	at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:334)
> 	at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:328)
> 	at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:328)
> 	at org.apache.jackrabbit.core.data.FileDataStore.deleteOlderRecursive(FileDataStore.java:328)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message