fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From my...@apache.org
Subject [fineract-cn-lang] 20/49: Logic of assignability of exception was reversed.
Date Mon, 22 Jan 2018 15:01:15 GMT
This is an automated email from the ASF dual-hosted git repository.

myrle pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract-cn-lang.git

commit 86d418e63fe38525e8d80ffef2e3a53a410d746b
Author: myrle-krantz <mkrantz@mifos.org>
AuthorDate: Fri May 26 11:33:35 2017 +0200

    Logic of assignability of exception was reversed.
---
 src/main/java/io/mifos/core/lang/config/ServiceExceptionFilter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/io/mifos/core/lang/config/ServiceExceptionFilter.java b/src/main/java/io/mifos/core/lang/config/ServiceExceptionFilter.java
index 45e8f7c..96f04d3 100644
--- a/src/main/java/io/mifos/core/lang/config/ServiceExceptionFilter.java
+++ b/src/main/java/io/mifos/core/lang/config/ServiceExceptionFilter.java
@@ -40,7 +40,7 @@ final class ServiceExceptionFilter extends OncePerRequestFilter {
     try {
       filterChain.doFilter(request, response);
     } catch (final NestedServletException ex) {
-      if (ex.getCause().getClass().isAssignableFrom(ServiceException.class)) {
+      if (ServiceException.class.isAssignableFrom(ex.getCause().getClass())) {
         @SuppressWarnings("ThrowableResultOfMethodCallIgnored") final ServiceException serviceException
= ServiceException.class.cast(ex.getCause());
         final ServiceError serviceError = serviceException.serviceError();
         logger.info("Responding with a service error " + serviceError);

-- 
To stop receiving notification emails like this one, please contact
myrle@apache.org.

Mime
View raw message