mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
bugfix: add precondition for NP
This commit is contained in:
parent
781207e15b
commit
17eae84c0c
1 changed files with 6 additions and 0 deletions
|
|
@ -531,6 +531,9 @@ public class NotebookServer extends WebSocketServlet implements
|
|||
}
|
||||
|
||||
public void broadcastNoteList(AuthenticationInfo subject) {
|
||||
if (subject == null) {
|
||||
subject = new AuthenticationInfo(StringUtils.EMPTY);
|
||||
}
|
||||
//send first to requesting user
|
||||
List<Map<String, String>> notesInfo = generateNotebooksInfo(false, subject);
|
||||
multicastToUser(subject.getUser(), new Message(OP.NOTES_INFO).put("notes", notesInfo));
|
||||
|
|
@ -550,6 +553,9 @@ public class NotebookServer extends WebSocketServlet implements
|
|||
}
|
||||
|
||||
public void broadcastReloadedNoteList(AuthenticationInfo subject) {
|
||||
if (subject == null) {
|
||||
subject = new AuthenticationInfo(StringUtils.EMPTY);
|
||||
}
|
||||
//reload and reply first to requesting user
|
||||
List<Map<String, String>> notesInfo = generateNotebooksInfo(true, subject);
|
||||
multicastToUser(subject.getUser(), new Message(OP.NOTES_INFO).put("notes", notesInfo));
|
||||
|
|
|
|||
Loading…
Reference in a new issue