From f507da46c94b8fe6852ddc9f41ef5062b5e8cfac Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 2 Mar 2022 10:11:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=A3=E7=90=86=E6=9D=83=E9=99=90?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/dataease/auth/aop/DePermissionProxyHandler.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/main/java/io/dataease/auth/aop/DePermissionProxyHandler.java b/backend/src/main/java/io/dataease/auth/aop/DePermissionProxyHandler.java index 1d852213dd..7bfa88a893 100644 --- a/backend/src/main/java/io/dataease/auth/aop/DePermissionProxyHandler.java +++ b/backend/src/main/java/io/dataease/auth/aop/DePermissionProxyHandler.java @@ -1,6 +1,5 @@ package io.dataease.auth.aop; -import java.lang.reflect.Array; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.Arrays; @@ -60,7 +59,7 @@ public class DePermissionProxyHandler { } private PermissionProxy getProxy(Object arg, DePermissionProxy annotation, int layer) throws Exception { - PermissionProxy result = null; + if(null == arg) return null; String value = annotation.value(); Class parameterType = arg.getClass(); if (arg instanceof PermissionProxy) {