Skip to content

Commit 4d6ba44

Browse files
committed
判空优化
1 parent 0c3af16 commit 4d6ba44

File tree

1 file changed

+1
-1
lines changed
  • EasyRest/src/main/java/tech/dbgsoftware/easyrest/network

1 file changed

+1
-1
lines changed

EasyRest/src/main/java/tech/dbgsoftware/easyrest/network/NettyInit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ private void registerUserHandlers(ChannelPipeline pipeline){
246246
if (newHandler != null && handler != null && newHandler.containsKey(name) && !newHandler.get(name)) {
247247
return handler.getClass().newInstance();
248248
}
249-
} catch (InstantiationException | IllegalAccessException e) {
249+
} catch (Exception e) {
250250
LOGGER.error(e.getMessage(), e);
251251
}
252252
return handler;

0 commit comments

Comments
 (0)