mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Fix for 188193: [CDT+TM] Error while toggling between source and header
This commit is contained in:
parent
9e61b19314
commit
eaa7faaf1f
1 changed files with 3 additions and 0 deletions
|
@ -266,6 +266,9 @@ public class ToggleSourceAndHeaderAction extends TextEditorAction {
|
|||
}
|
||||
// search partnerfile based on filename/extension
|
||||
IPath sourceFileLocation= tUnit.getLocation();
|
||||
if (sourceFileLocation == null) {
|
||||
return null;
|
||||
}
|
||||
IPath partnerBasePath= sourceFileLocation.removeFileExtension();
|
||||
IContentType[] contentTypes= getPartnerContentTypes(tUnit.getContentTypeId());
|
||||
HashSet extensionsTried= new HashSet();
|
||||
|
|
Loading…
Add table
Reference in a new issue