refactor(YouTube - Change header): Handle importing bad settings data

This commit is contained in:
LisoUseInAIKyrios
2025-07-05 13:03:41 +04:00
parent 3135203b55
commit caf3b69731

View File

@@ -34,7 +34,10 @@ public class ChangeHeaderPatch {
return null;
}
return Utils.getResourceIdentifier(resourceName, "attr");
final int identifier = Utils.getResourceIdentifier(resourceName, "attr");
// Identifier is zero if custom header setting was included in imported settings
// and a custom image was not included during patching.
return identifier == 0 ? null : identifier;
}
}