diff options
| author | lifengchao <[email protected]> | 2024-10-16 11:35:16 +0800 |
|---|---|---|
| committer | lifengchao <[email protected]> | 2024-10-16 11:35:16 +0800 |
| commit | 5425dc1ae4a722f2ffa1ef07f2ce8abad0af8374 (patch) | |
| tree | b0243252aac0765786989f009b7ee80b78b9ee40 | |
| parent | dd558895793ed730b68ba65b5c8487d2b0678045 (diff) | |
[feature][core] SingleValueMap处理可能发生的异常
| -rw-r--r-- | groot-core/src/main/java/com/geedgenetworks/core/utils/SingleValueMap.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/groot-core/src/main/java/com/geedgenetworks/core/utils/SingleValueMap.java b/groot-core/src/main/java/com/geedgenetworks/core/utils/SingleValueMap.java index 578c906..f6f73c3 100644 --- a/groot-core/src/main/java/com/geedgenetworks/core/utils/SingleValueMap.java +++ b/groot-core/src/main/java/com/geedgenetworks/core/utils/SingleValueMap.java @@ -93,7 +93,11 @@ public class SingleValueMap { void destroy() {
if (destroyFunc != null) {
- destroyFunc.accept(data);
+ try {
+ destroyFunc.accept(data);
+ } catch (Exception e) {
+ LOG.error("error when destroy data: {}", data);
+ }
}
}
|
