From 8b6b967fc3e4382fc258faf4d91deb78bde7ab86 Mon Sep 17 00:00:00 2001 From: ZhaokaiTian <751824405@qq.com> Date: Tue, 25 Oct 2022 13:14:52 +0800 Subject: [PATCH] fix_bug:https://gitee.com/dromara/MaxKey/issues/I5X10K --- .../main/java/org/maxkey/web/InitializeContext.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/maxkey-core/src/main/java/org/maxkey/web/InitializeContext.java b/maxkey-core/src/main/java/org/maxkey/web/InitializeContext.java index 56d6d5d5e..37672f489 100644 --- a/maxkey-core/src/main/java/org/maxkey/web/InitializeContext.java +++ b/maxkey-core/src/main/java/org/maxkey/web/InitializeContext.java @@ -201,15 +201,15 @@ public class InitializeContext extends HttpServlet { _logger.trace(key + " = {}" , map.get(key)); } _logger.debug("APP_HOME" + " = {}" , PathUtils.getInstance().getAppPath()); - - Processor.Type processorType = ArchUtils.getProcessor().getType(); - if (Objects.isNull(processorType)){ - processorType = Processor.Type.UNKNOWN; + + Processor processor = ArchUtils.getProcessor(); + if (Objects.isNull(processor)){ + processor = new Processor(Processor.Arch.UNKNOWN, Processor.Type.UNKNOWN); } _logger.debug("OS : {}({} {}), version {}", SystemUtils.OS_NAME, SystemUtils.OS_ARCH, - processorType, + processor.getType(), SystemUtils.OS_VERSION );