You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sf...@apache.org on 2015/03/20 00:27:00 UTC

[43/50] [abbrv] incubator-usergrid git commit: Removed exception swallowing

Removed exception swallowing


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/61c5f9cc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/61c5f9cc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/61c5f9cc

Branch: refs/heads/USERGRID-480
Commit: 61c5f9ccadf74dc997235d5d9a71403e6cd7f60c
Parents: d8f949b
Author: Todd Nine <tn...@apigee.com>
Authored: Wed Mar 18 17:45:43 2015 -0600
Committer: Todd Nine <tn...@apigee.com>
Committed: Wed Mar 18 17:45:43 2015 -0600

----------------------------------------------------------------------
 .../organizations/applications/ApplicationsResource.java       | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/61c5f9cc/stack/rest/src/main/java/org/apache/usergrid/rest/management/organizations/applications/ApplicationsResource.java
----------------------------------------------------------------------
diff --git a/stack/rest/src/main/java/org/apache/usergrid/rest/management/organizations/applications/ApplicationsResource.java b/stack/rest/src/main/java/org/apache/usergrid/rest/management/organizations/applications/ApplicationsResource.java
index 2a5ce9d..f94fa34 100644
--- a/stack/rest/src/main/java/org/apache/usergrid/rest/management/organizations/applications/ApplicationsResource.java
+++ b/stack/rest/src/main/java/org/apache/usergrid/rest/management/organizations/applications/ApplicationsResource.java
@@ -107,8 +107,6 @@ public class ApplicationsResource extends AbstractContextResource {
 
         logger.debug("newApplicationForOrganizationFromForm");
 
-        try {
-
         Preconditions.checkArgument( !isEmpty( applicationName ),
                 "The 'name' parameter is required and cannot be empty: " + applicationName );
 
@@ -123,10 +121,6 @@ public class ApplicationsResource extends AbstractContextResource {
         response.setResults( management.getApplicationMetadata( applicationInfo.getId() ) );
         return new JSONWithPadding( response, callback );
 
-        } catch (Exception e) {
-            logger.debug("Error in newApplicationForOrganizationFromForm", e);
-            return null;
-        }
     }