Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,11 @@ private[deploy] class Master(

futureUI.onSuccess { case Some(ui) =>
appIdToUI.put(app.id, ui)
self.send(AttachCompletedRebuildUI(app.id))
// `self` can be null if we are already in the process of shutting down
// This happens frequently in tests where `local-cluster` is used
if (self != null) {
self.send(AttachCompletedRebuildUI(app.id))
}
// Application UI is successfully rebuilt, so link the Master UI to it
// NOTE - app.appUIUrlAtHistoryServer is volatile
app.appUIUrlAtHistoryServer = Some(ui.basePath)
Expand Down