Handle the case where platformConfiguration isn't present.
Part of
@@ -49,7 +49,9 @@ public class RegisteredExecutionPlatformsFunction implements SkyFunction {
// Get the execution platforms from the configuration.
PlatformConfiguration platformConfiguration =
configuration.getFragment(PlatformConfiguration.class);
+ if (platformConfiguration != null) {
registeredExecutionPlatformLabels.addAll(platformConfiguration.getExtraExecutionPlatforms());
+ }
// Get the registered execution platforms from the WORKSPACE.
List<Label> workspaceExecutionPlatforms = getWorkspaceExecutionPlatforms(env);
