mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
prevent NPE
This commit is contained in:
parent
cceeaef2a4
commit
1a05bed3ae
1 changed files with 2 additions and 1 deletions
|
|
@ -193,7 +193,8 @@ public class NotebookServer extends WebSocketServlet
|
|||
}
|
||||
|
||||
String ticket = TicketContainer.instance.getTicket(messagereceived.principal);
|
||||
if (ticket != null && !ticket.equals(messagereceived.ticket)) {
|
||||
if (ticket != null &&
|
||||
(messagereceived.ticket == null || !ticket.equals(messagereceived.ticket))) {
|
||||
/* not to pollute logs, log instead of exception */
|
||||
if (StringUtils.isEmpty(messagereceived.ticket)) {
|
||||
LOG.debug("{} message: invalid ticket {} != {}", messagereceived.op,
|
||||
|
|
|
|||
Loading…
Reference in a new issue