GitHub user HeartSaVioR opened a pull request:
https://github.com/apache/incubator-zeppelin/pull/562
ZEPPELIN-527 Fix NPE while retrieving job status from notebook
### What is this PR for?
Fix NPE while retrieving job status from notebook which contains "never
run" / "first run but not finished".
### What type of PR is it?
Bug Fix
### Todos
* [ ] -
### Is there a relevant Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-527
### How should this be tested?
1. Create a new notebook (```but don't run notebook!```)
2. Open ```http://<zeppelin host>:<zeppelin port>/api/notebook/job/<new
notebook id>
3. You can see HTTP STATUS 500 before this PR, but you can see HTTP STATUS
200 after this PR.
### 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/HeartSaVioR/incubator-zeppelin ZEPPELIN-527
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-zeppelin/pull/562.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 #562
----
commit f296406b920d7374f821f46d873b54e718137153
Author: Jungtaek Lim <[email protected]>
Date: 2015-12-22T04:15:32Z
ZEPPELIN-527 Fix NPE while retrieving job status from notebook
* Paragraph.getDateStarted() and Paragraph.getDateFinished() could be null
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---