GitHub user Leemoonsoo opened a pull request:

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

    [MINOR] Prevent log NPE in ResourcePoolUtils.getAllResourcesExcept()

    ### What is this PR for?
    
    ResourcePoolUtils.getAllResourcesExcept() sometimes throws NPE. Which 
doesn't really need to be logged.
    
    ```
    ResourcePoolUtils.java[getAllResourcesExcept]:64) - 
    java.lang.NullPointerException
        at 
org.apache.zeppelin.resource.ResourcePoolUtils.getAllResourcesExcept(ResourcePoolUtils.java:58)
        at 
org.apache.zeppelin.resource.ResourcePoolUtils.getAllResources(ResourcePoolUtils.java:36)
        at org.apache.zeppelin.helium.Helium.suggestApp(Helium.java:264)
        at org.apache.zeppelin.rest.HeliumRestApi.suggest(HeliumRestApi.java:84)
    ```
    
    
    ### What type of PR is it?
    Improvement
    
    ### Todos
    * [x] - handle null thrift client
    
    ### 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 npe_getallresources

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

    https://github.com/apache/zeppelin/pull/1958.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 #1958
    
----
commit 862d86f7e7b41d82e5047c86aafbcbd5b632cde3
Author: Lee moon soo <m...@apache.org>
Date:   2017-01-29T21:31:18Z

    prevent logging NPE in ResourcePoolUtils.getAllResourcesExcept()

----


---
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