{"record":{"id":"b1ac2175d4100d13","repo":"huiyadanli/RevokeMsgPatcher","slug":"change-null","errorCode":"change_null","errorMessage":"在安装补丁时，变更的内容为空！","messagePattern":"在安装补丁时，变更的内容为空！","errorType":"error_code","errorClass":"BusinessException","httpStatus":null,"severity":"error","filePath":"RevokeMsgPatcher/Modifier/FileHexEditor.cs","lineNumber":111,"sourceCode":"                    File.Copy(FilePath, FileBakPath, true);\n                }\n            }\n            else\n            {\n                File.Copy(FilePath, FileBakPath, true);\n            }\n\n        }\n\n        /// <summary>\n        /// 打补丁\n        /// </summary>\n        /// <returns></returns>\n        public bool Patch()\n        {\n            if (TargetChanges == null)\n            {\n                throw new BusinessException(\"change_null\", \"在安装补丁时，变更的内容为空！\");\n            }\n\n            FileUtil.EditMultiHex(FilePath, TargetChanges);\n            return true;\n        }\n\n        /// <summary>\n        /// 还原\n        /// </summary>\n        public void Restore()\n        {\n            File.Copy(FileBakPath, FilePath, true);\n        }\n    }\n}\n","sourceCodeStart":93,"sourceCodeEnd":127,"githubUrl":"https://github.com/huiyadanli/RevokeMsgPatcher/blob/89cbbb3f0cc896d5d092de0199a635c5c39944b6/RevokeMsgPatcher/Modifier/FileHexEditor.cs#L93-L127","documentation":"Error \"在安装补丁时，变更的内容为空！\" thrown in huiyadanli/RevokeMsgPatcher.","triggerScenarios":"FileHexEditor.Patch() 被调用时 TargetChanges 为 null，即文件修改器没有生成任何补丁变更内容。通常是因为匹配到的补丁配置中没有适用于当前文件版本/特征的修改项，或前置的特征比对未能产出有效的修改数据。","commonSituations":"目标应用版本过新或过旧，补丁库中没有对应的修改特征；同一文件被重复打补丁导致没有需要变更的内容；补丁配置文件（如 patch.json）缺失或与当前应用版本不匹配。","solutions":["确认目标应用版本是否在补丁支持的版本列表内，必要时更新补丁信息或升级/降级应用","重新获取最新的补丁配置数据后再执行安装","先执行还原，确保目标文件处于未被修改的原始状态后再重新安装补丁"],"exampleFix":"在补丁安装界面点击“获取最新补丁信息”，确认应用版本受支持后重新点击安装；若仍失败，先点击“还原”恢复原始文件再安装。","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"89cbbb3f0cc896d5d092de0199a635c5c39944b6","analyzedAt":"2026-08-13T10:37:37.073Z","schemaVersion":2},"datasetVersion":"2026-08-13T14:17:21.547Z"}