{"record":{"id":"81361268094050c1","repo":"Tencent/tinker","slug":"patch-dex-file-not-found-but-path-is-null","errorCode":null,"errorMessage":"patch dex file not found, but path is null!!!!","messagePattern":"patch dex file not found, but path is null!!!!","errorType":"exception","errorClass":"TinkerRuntimeException","httpStatus":null,"severity":"error","filePath":"tinker-android/tinker-android-lib-no-op/src/main/java/com/tencent/tinker/lib/tinker/TinkerLoadResult.java","lineNumber":214,"sourceCode":"                        ShareConstants.TYPE_DEX, true);\n                } else {\n                    //should be not here\n                    ShareTinkerLog.e(TAG, \"patch dex file directory not found, warning why the path is null!!!!\");\n                    throw new TinkerRuntimeException(\"patch dex file directory not found, warning why the path is null!!!!\");\n                }\n                break;\n            case ShareConstants.ERROR_LOAD_PATCH_VERSION_DEX_FILE_NOT_EXIST:\n                String dexPath = ShareIntentUtil.getStringExtra(intentResult,\n                    ShareIntentUtil.INTENT_PATCH_MISSING_DEX_PATH);\n                if (dexPath != null) {\n                    //we only pass one missing file\n                    ShareTinkerLog.e(TAG, \"patch dex file not found:%s\", dexPath);\n                    tinker.getLoadReporter().onLoadFileNotFound(new File(dexPath),\n                        ShareConstants.TYPE_DEX, false);\n\n                } else {\n                    ShareTinkerLog.e(TAG, \"patch dex file not found, but path is null!!!!\");\n                    throw new TinkerRuntimeException(\"patch dex file not found, but path is null!!!!\");\n                    // tinker.getLoadReporter().onLoadFileNotFound(null,\n                    //     ShareConstants.TYPE_DEX, false);\n                }\n                break;\n            case ShareConstants.ERROR_LOAD_PATCH_VERSION_DEX_OPT_FILE_NOT_EXIST:\n                String dexOptPath = ShareIntentUtil.getStringExtra(intentResult,\n                    ShareIntentUtil.INTENT_PATCH_MISSING_DEX_PATH);\n                if (dexOptPath != null) {\n                    //we only pass one missing file\n                    ShareTinkerLog.e(TAG, \"patch dex opt file not found:%s\", dexOptPath);\n                    tinker.getLoadReporter().onLoadFileNotFound(new File(dexOptPath),\n                        ShareConstants.TYPE_DEX_OPT, false);\n\n                } else {\n                    ShareTinkerLog.e(TAG, \"patch dex opt file not found, but path is null!!!!\");\n                    throw new TinkerRuntimeException(\"patch dex opt file not found, but path is null!!!!\");\n                    // tinker.getLoadReporter().onLoadFileNotFound(null,\n                    //     ShareConstants.TYPE_DEX, false);","sourceCodeStart":196,"sourceCodeEnd":232,"githubUrl":"https://github.com/Tencent/tinker/blob/1b7ea02c239840f563ea64fb5bd286eb98d4011e/tinker-android/tinker-android-lib-no-op/src/main/java/com/tencent/tinker/lib/tinker/TinkerLoadResult.java#L196-L232","documentation":"Error \"patch dex file not found, but path is null!!!!\" thrown in Tencent/tinker.","triggerScenarios":"Thrown at tinker-android/tinker-android-lib-no-op/src/main/java/com/tencent/tinker/lib/tinker/TinkerLoadResult.java:214 when the library encounters an invalid state.","commonSituations":"Thrown in TinkerLoadResult.parseTinkerResult on ERROR_LOAD_PATCH_VERSION_DEX_FILE_NOT_EXIST when the missing-dex path extra is null. Indicates the patch's dex files were deleted or never extracted.","solutions":["Check that the patch intent includes INTENT_PATCH_MISSING_DEX_PATH so the missing dex path can be reported.","Re-run the patch process; a dex declared in the patch info is absent from the patch directory."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1b7ea02c239840f563ea64fb5bd286eb98d4011e","analyzedAt":"2026-08-14T15:16:52.110Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}