1
0
Fork 0
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:
Anton Leherbauer 2007-05-22 07:57:20 +00:00
parent 9e61b19314
commit eaa7faaf1f

View file

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