1
0
Fork 0
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:
Ken Ryall 2008-03-24 21:46:26 +00:00
parent 3071e4834e
commit e67872f544

View file

@ -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);
}