mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-02 08:25:02 -04:00
* fix type panel NPE that crashed it
This commit is contained in:
parent
339c267f6b
commit
79b58654ca
@ -49,10 +49,13 @@ class TypeTool extends Tool<TreeModel> {
|
||||
|
||||
for (Iterator<File> iterator = sourceModel.fileIterator(); iterator.hasNext();) {
|
||||
File file = iterator.next();
|
||||
String extension = FileUtilities.getExtension(file).toLowerCase();
|
||||
|
||||
String extension = FileUtilities.getExtension(file);
|
||||
if (extension != null) {
|
||||
extension = extension.toLowerCase();
|
||||
}
|
||||
|
||||
List<File> files = map.get(extension);
|
||||
|
||||
if (files == null) {
|
||||
files = new ArrayList<File>(50);
|
||||
map.put(extension, files);
|
||||
|
Loading…
Reference in New Issue
Block a user