You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by malakasilva <gi...@git.apache.org> on 2015/11/28 13:29:36 UTC

[GitHub] stratos pull request: Fixed not showing exceptions when adding an ...

Github user malakasilva commented on a diff in the pull request:

    https://github.com/apache/stratos/pull/380#discussion_r46079507
  
    --- Diff: components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41Utils.java ---
    @@ -1396,7 +1396,8 @@ public static void addApplication(ApplicationBean appDefinition, ConfigurationCo
                         usedCartridgeGroups.toArray(new String[usedCartridgeGroups.size()]));
     
             } catch (AutoscalerServiceApplicationDefinitionExceptionException e) {
    -            throw new RestAPIException(e);
    +            String message = e.getFaultMessage().getApplicationDefinitionException().getMessage();
    --- End diff --
    
    Can this lead to nullpoint exceptions?



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