![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Affects Versions:
|
1.1.2 |
|
Assignee:
|
Logback dev list
|
|
Attachments:
|
NPE_on_file_renaming.patch, stacktrace.txt |
|
Components:
|
logback-core |
|
Created:
|
05/Jan/15 6:58 PM
|
|
Description:
|
If for some reason renaming file fails (see http://logback.qos.ch/codes.html#renamingError) then Logback internally throws NPE
See stacktrace.txt file attached.
Reason of heaving this exception: We are trying to rename existing file with path (lets say 'c:\Temp\2\log.log') to a file with just a name (lets say 'log2.log')
In this case if renaming fails for some reason then we are trying to compare volumes of existing file ('c:\Temp\2\log.log') and a parent of a target file ('log2.log).
Parent is null in this case.
Fix would be: RenameUtil.areOnDifferentVolumes should return false if parent file is null (patch file attached)
|
|
Environment:
|
Windows 8, Java 8.0_25
|
|
Project:
|
logback
|
|
Priority:
|
Major
|
|
Reporter:
|
Konstantin Kulagin
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
_______________________________________________
logback-dev mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-dev