Explorar o código

if (null != properties)

wangwei %!s(int64=5) %!d(string=hai) anos
pai
achega
5909d1b2b1

+ 4 - 2
examcloud-core-basic-service/src/main/java/cn/com/qmth/examcloud/core/basic/service/impl/OrgServiceImpl.java

@@ -292,8 +292,10 @@ public class OrgServiceImpl implements OrgService {
 			orgPropertyRepo.save(entity);
 		}
 
-		for (String key : properties.keySet()) {
-			orgPropertyCache.remove(orgId, key);
+		if (null != properties) {
+			for (String key : properties.keySet()) {
+				orgPropertyCache.remove(orgId, key);
+			}
 		}
 
 	}