New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ZEPPELIN-3928] Fix bugs AngularBind operation NullPointerException #3276
Conversation
…hen the interpreter is not started ### What is this PR for? In the case where the note does not start the interpreter process, Direct use of the z.angularBind operation will have a null pointer exception. ### What type of PR is it? [Bug Fix] ### Todos * [x] Fix the condition for judging the interpreter process when the note is used for angularBind. * [x] Optimize the execution efficiency of the NotebookServer::onUpdate(...) function. ### What is the Jira issue? * https://issues.apache.org/jira/browse/ZEPPELIN-3928 ### How should this be tested? CI pass ### Screenshots (if appropriate) ![alt text](https://github.com/liuxunorg/images/blob/master/zeppelin/angularBing-bug.gif?raw=true "angularBing-bug.gif") ![alt text](https://github.com/liuxunorg/images/blob/master/zeppelin/angularBing-bugfix.gif?raw=true "angularBing-bugfix.gif") ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for all the details in the description.
it looks like there are two separate fixes here? what's the condition to reach object.getNoteId() == null
?
continue; | ||
} | ||
|
||
Note note = getNotebook().getNote(object.getNoteId()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Judge object.getNoteId() == null
Is to prevent Note note = getNotebook().getNote(object.getNoteId());
exception
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
object.getNoteId() == null
, Can also not add this code, Just to be safer, Or do I cancel this judgment code?
@felixcheung , @jongyoul , @zjffdu, Please help me review code. Thanks! :-) |
…date(...) function.`
@felixcheung , I revert |
+1, Will merge if no more comments Thanks @liuxunorg |
What is this PR for?
In the case where the note does not start the interpreter process, Direct use of the z.angularBind operation will have a null pointer exception.
What type of PR is it?
[Bug Fix]
Todos
What is the Jira issue?
What Test
Create a new paragraph to display angularBind variables
Create a new paragraph to bind variables
How should this be tested?
CI pass
Screenshots (if appropriate)
Before fixing BUG
After fixing the bug
Questions: