db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-6396) NullPointerException in DirFile
Date Mon, 04 Nov 2013 10:14:19 GMT

    [ https://issues.apache.org/jira/browse/DERBY-6396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13812727#comment-13812727
] 

ASF subversion and git services commented on DERBY-6396:
--------------------------------------------------------

Commit 1538541 from [~knutanders] in branch 'code/branches/10.10'
[ https://svn.apache.org/r1538541 ]

DERBY-6396: NullPointerException in DirFile

Merged fix from trunk (revision 1537394).

> NullPointerException in DirFile
> -------------------------------
>
>                 Key: DERBY-6396
>                 URL: https://issues.apache.org/jira/browse/DERBY-6396
>             Project: Derby
>          Issue Type: Bug
>          Components: Miscellaneous
>    Affects Versions: 10.10.1.1
>         Environment: Windows 7
>            Reporter: Fabian Depry
>            Assignee: Knut Anders Hatlen
>             Fix For: 10.11.0.0
>
>         Attachments: check-null-with-test.diff, check-null.diff
>
>
> We got a NullPointerException trying to start a Derby database in embedded mode; the
stacktrace indicated it happened in org.apache.derby.impl.io.DirFile.deleteAll(); that method
got called from org.apache.derby.impl.io.BaseStorageFactory.createTempDir().
> After investigating, it appears that the deleteAll() method calls "super.list()", which
according to the java.io.File specifications, can return null. But the deleteAll() method
doesn't handle that case gracefully.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message