1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 16:56:04 +02:00

Bug 521265 - Check that the platform is running before querying bundle group providers in CCorePlugin.getCDTFeatureVersion()

Change-Id: I5910e8c7decd7c8a347ca640f9c99875ad95fcf6
This commit is contained in:
Nathan Ridge 2017-08-30 19:00:33 -04:00
parent a0ab38124c
commit 398ca82b48

View file

@ -1641,6 +1641,7 @@ public class CCorePlugin extends Plugin {
* @since 6.3
*/
public static Version getCDTFeatureVersion() {
if (Platform.isRunning()) {
IBundleGroupProvider[] providers = Platform.getBundleGroupProviders();
if (providers != null) {
for (IBundleGroupProvider provider : providers) {
@ -1652,6 +1653,7 @@ public class CCorePlugin extends Plugin {
}
}
}
}
return null;
}
}