refactor(YouTube - Change header): Handle importing bad settings data
This commit is contained in:
parent
3135203b55
commit
caf3b69731
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue