Skip to content

Commit aa28354

Browse files
authored
Merge pull request #1 from homeless2010/patch-1
Update ApiWrapAspect.java
2 parents 5fa1b49 + d5b9a58 commit aa28354

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api-wrap-boot/src/main/java/com/seelyn/apiwrap/ApiWrapAspect.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ public void before(JoinPoint joinPoint) {
5050
WrapHandler wrapHandler = (WrapHandler) WrapBeanFactoryUtils.getBean(clazz);
5151

5252
Object[] args = joinPoint.getArgs();
53+
if (args == null || args.length == 0) {
54+
throw new InvalidWrapSignatureException("签名有误");
55+
}
5356
for (Object obj : args) {
5457
if (obj instanceof WrapRequest) {
5558
//noinspection unchecked

0 commit comments

Comments
 (0)