You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by my...@apache.org on 2018/01/22 15:01:15 UTC
[fineract-cn-lang] 20/49: Logic of assignability of exception was
reversed.
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 <mk...@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.