{"record":{"id":"f4a96459efa6c9ba","repo":"HMCL-dev/HMCL","slug":"mcbbsmodpackmanifest-addons-cannot-be-null","errorCode":null,"errorMessage":"McbbsModpackManifest.addons cannot be null","messagePattern":"McbbsModpackManifest\\.addons cannot be null","errorType":"validation","errorClass":"JsonParseException","httpStatus":null,"severity":"error","filePath":"HMCLCore/src/main/java/org/jackhuang/hmcl/modpack/mcbbs/McbbsModpackManifest.java","lineNumber":165,"sourceCode":"@Override\npublic void validate() throws JsonParseException, TolerableValidationException {\n    if (!MANIFEST_TYPE.equals(manifestType))\n        throw new JsonParseException(\"McbbsModpackManifest.manifestType must be 'minecraftModpack'\");\n    if (files == null)\n        throw new JsonParseException(\"McbbsModpackManifest.files cannot be null\");\n    if (addons == null)\n        throw new JsonParseException(\"McbbsModpackManifest.addons cannot be null\");\n}","sourceCodeStart":147,"sourceCodeEnd":183,"githubUrl":"https://github.com/HMCL-dev/HMCL/blob/24702dc5a0214034f4c27166d5fd30cad08cec19/HMCLCore/src/main/java/org/jackhuang/hmcl/modpack/mcbbs/McbbsModpackManifest.java#L147-L183","documentation":"Post-deserialization validation of an MCBBS modpack manifest: the 'addons' array is absent or null. Addons record component versions (e.g. forge, fabric), and without them HMCL cannot build the game instance, so the manifest is rejected.","triggerScenarios":"Thrown at HMCLCore/src/main/java/org/jackhuang/hmcl/modpack/mcbbs/McbbsModpackManifest.java:165 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-download the modpack archive; it may be corrupted or incomplete","Check that mcbbs.packmeta includes a non-null addons array"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24702dc5a0214034f4c27166d5fd30cad08cec19","analyzedAt":"2026-09-10T12:36:46.680Z","contentChangedAt":"2026-09-10T12:36:46.680Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}