mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
bug 270031, FileLanguageMappingPropertyPage throws NPE when opened on remote resource
This commit is contained in:
parent
5dc7000a12
commit
00d1f34feb
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ public class FileLanguageMappingPropertyPage extends PropertyPage {
|
|||
protected Control createContents(Composite parent) {
|
||||
IFile file = getFile();
|
||||
IProject project = file.getProject();
|
||||
fContentType = CContentTypes.getContentType(project, file.getLocation().toString());
|
||||
fContentType = CContentTypes.getContentType(project, file.getName());
|
||||
|
||||
fContents = new Composite(parent, SWT.NONE);
|
||||
fContents.setLayout(new GridLayout(2, false));
|
||||
|
|
Loading…
Add table
Reference in a new issue