mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Fix NPE when no file extension.
This commit is contained in:
parent
3071e4834e
commit
e67872f544
1 changed files with 4 additions and 1 deletions
|
@ -118,7 +118,10 @@ class ExecutablesContentProvider extends ColumnLabelProvider implements IStructu
|
|||
}
|
||||
cell.setImage(null);
|
||||
} else if (cell.getColumnIndex() == 5) {
|
||||
cellText = exe.getPath().getFileExtension().toUpperCase();
|
||||
cellText = "";
|
||||
String fileExtension = exe.getPath().getFileExtension();
|
||||
if (fileExtension != null)
|
||||
cellText = fileExtension;
|
||||
}
|
||||
cell.setText(cellText);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue