Don't attempt to get the `EventBus` for crashes during server startup.
`workspace` may not yet be initialized, leading to an NPE and the "crash occurred while trying to handle a crash" message in `BugReport`.
@@ -551,6 +551,9 @@ public final class BlazeRuntime implements BugReport.BlazeRuntimeInterface {
}
// Only try to publish events if we won the exit code race. Otherwise someone else is already
// exiting for us.
+ if (workspace == null) {
+ return; // A crash during server startup.
+ }
EventBus eventBus = workspace.getSkyframeExecutor().getEventBus();
if (eventBus != null) {
workspace
