Commits

Anonymous committed a8dcf2e Draft Merge
  • Participants
  • Parent commits 3a78dda, fbfb325

Comments (0)

Files changed (1)

File cnd.model.services/src/org/netbeans/modules/cnd/model/services/CsmCodeAssistanceProvider.java

                 while(iterator.hasNext()) {
                     CsmCompilationUnit cu = iterator.next();
                     CsmFile startFile = cu.getStartFile();
-                    Object platformProject = startFile.getProject().getPlatformProject();
-                    if (platformProject instanceof NativeProject) {
-                        NativeProject np = (NativeProject) platformProject;
-                        NativeFileItem ni = np.findFileItem(startFile.getFileObject());
-                        if (ni != null && ni != item && startFile.isSourceFile()) {
-                            langs.add(ni.getLanguage());
-                            flavors.add(ni.getLanguageFlavor());
+                    if (startFile != null) {
+                        Object platformProject = startFile.getProject().getPlatformProject();
+                        if (platformProject instanceof NativeProject) {
+                            NativeProject np = (NativeProject) platformProject;
+                            NativeFileItem ni = np.findFileItem(startFile.getFileObject());
+                            if (ni != null && ni != item && startFile.isSourceFile()) {
+                                langs.add(ni.getLanguage());
+                                flavors.add(ni.getLanguageFlavor());
+                            }
                         }
                     }
                 }