mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 00:45:28 +02:00
Bug 278632 - NPE in CSourceViewerConfiguration on non file:// IFileStores, patch by Andrew Eidsness
This commit is contained in:
parent
f497c46b26
commit
e868cbb696
1 changed files with 3 additions and 1 deletions
|
@ -957,7 +957,9 @@ public class CSourceViewerConfiguration extends TextSourceViewerConfiguration {
|
|||
ILocationProvider locationProvider = (ILocationProvider)input.getAdapter(ILocationProvider.class);
|
||||
if (locationProvider != null) {
|
||||
IPath path = locationProvider.getPath(input);
|
||||
contentType = CCorePlugin.getContentType(path.lastSegment());
|
||||
if (path != null) {
|
||||
contentType = CCorePlugin.getContentType(path.lastSegment());
|
||||
}
|
||||
}
|
||||
}
|
||||
if (contentType != null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue