mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 22:22:11 +02:00
Fix for 185771: NPE in CNavigatorContentProvider
This commit is contained in:
parent
af3aff231f
commit
2a13c19e05
1 changed files with 1 additions and 1 deletions
|
@ -299,7 +299,7 @@ public class CNavigatorContentProvider extends CViewContentProvider implements I
|
|||
if (parent instanceof IContainer) {
|
||||
IContainer container= (IContainer)parent;
|
||||
IProject project= container.getProject();
|
||||
if (container != project && CoreModel.hasCNature(container.getProject())) {
|
||||
if (project != null && CoreModel.hasCNature(project)) {
|
||||
ICElement element= CoreModel.getDefault().create(container);
|
||||
if (element != null) {
|
||||
// don't convert the root
|
||||
|
|
Loading…
Add table
Reference in a new issue