GitHub user alexjbush reopened a pull request:
https://github.com/apache/zeppelin/pull/3094
[ZEPPELIN-3656] Fix for completion with Livy interpreter
### What is this PR for?
Fix for NullPointerException when using code completion in the Livy
Interpreter when Shared Interpreter is enabled.
### What type of PR is it?
Bug Fix
### What is the Jira issue?
[ZEPPELIN-3656](https://issues.apache.org/jira/browse/ZEPPELIN-3656)
### How should this be tested?
Run Livy Interpreter in an environment where Shared Interpreter is enabled
and attempt to trigger code completions.
A unit test has been added to test the completion API when using a shared
interpreter. Before applying the fix this test was failing with the same NPE.
### Screenshots (if appropriate)
### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/alexjbush/zeppelin ZEPPELIN-3656
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zeppelin/pull/3094.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3094
----
commit 32aa7c5670399325308fa31575ae95963d053372
Author: Alex Bush <alex.bush@...>
Date: 2018-07-24T14:44:03Z
[ZEPPELIN-3656] Fix for completion with Livy interpreter
commit 71562e0f131b9d623338b242e514b051be4211ea
Author: Alex Bush <alex.bush@...>
Date: 2018-07-24T15:31:55Z
Test IT for Changes
commit cd0c2133fe9e2d0962e5b8c1b9ed82e733a11e51
Author: Alex Bush <alex.bush@...>
Date: 2018-07-24T15:54:38Z
Force a failing test
commit 4f4a875bf6dd513be05d86dae673c2ba93e52e8d
Author: Alex Bush <alex.bush@...>
Date: 2018-07-24T16:08:22Z
Correct completion test
----
---