GitHub user Leemoonsoo opened a pull request:

    https://github.com/apache/zeppelin/pull/2259

    Prevent NPE on delete local module cache

    ### What is this PR for?
    Prevent NPE on delete local module cache in HeliumBundleFactory
    
    ```
    Caused by: java.lang.NullPointerException
        at 
org.apache.zeppelin.helium.HeliumBundleFactory.deleteYarnCache(HeliumBundleFactory.java:465)
        at 
org.apache.zeppelin.helium.HeliumBundleFactory.copyFrameworkModulesToInstallPath(HeliumBundleFactory.java:487)
        at 
org.apache.zeppelin.helium.HeliumBundleFactory.buildPackage(HeliumBundleFactory.java:403)
        at org.apache.zeppelin.helium.Helium.enable(Helium.java:314)
        at 
org.apache.zeppelin.rest.HeliumRestApi.enablePackage(HeliumRestApi.java:193)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at 
org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
        at 
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
        ... 50 more
    ```
    
    ### What type of PR is it?
    Bug Fix
    
    ### 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/Leemoonsoo/zeppelin 
prevent_npe_helium_bundle_factory

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zeppelin/pull/2259.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 #2259
    
----
commit bf14144137bc41d084fd8db35f336cea7000c391
Author: Lee moon soo <m...@apache.org>
Date:   2017-04-18T19:40:01Z

    Prevent NPE on delete local module cache

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to