Commit 3d6f8f324193919775765782f11fc1d055437419
1 parent
8a175d6487
Exists in
master
and in
8 other branches
增加
Showing 1 changed file with 1 additions and 1 deletions
platform-common/src/main/java/com/lyms/platform/common/perf/DalMethodInterceptor.java
View file @
3d6f8f3
| ... | ... | @@ -42,7 +42,7 @@ | 
| 42 | 42 | try { | 
| 43 | 43 | |
| 44 | 44 | Object object = arg0.proceed(); | 
| 45 | - if(null==object && arg0.getMethod().getReturnType().isPrimitive()){ | |
| 45 | + if(null==object &&!"Void".equalsIgnoreCase(arg0.getMethod().getReturnType().getSimpleName())&&arg0.getMethod().getReturnType().isPrimitive()){ | |
| 46 | 46 | logger.warn("method return is Primitive ,result is null."); | 
| 47 | 47 | return typeMap.get(arg0.getMethod().getReturnType()); | 
| 48 | 48 | } |