Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileTypeUtil.getType 读取空文件报数组下标越界 #46

Closed
jjjjyx opened this issue Oct 20, 2017 · 1 comment
Closed

FileTypeUtil.getType 读取空文件报数组下标越界 #46

jjjjyx opened this issue Oct 20, 2017 · 1 comment
Labels

Comments

@jjjjyx
Copy link

jjjjyx commented Oct 20, 2017

File f = new File("G:\\1231\\6666\\tttt\\出错.txt");
try {
     System.out.println("file size= " + f.length());
     System.out.println(FileTypeUtil.getType(f));
} catch (IOException e) {
     e.printStackTrace();
}

//===>
#file size= 0

#java.lang.ArrayIndexOutOfBoundsException
@looly looly added the bug label Oct 20, 2017
@looly
Copy link
Member

looly commented Oct 20, 2017

感谢。3.1.2中会修复此问题。

@looly looly closed this as completed Oct 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants