-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Behave if child atom is empty (#170)
Credit: https://github.com/ta264 Lidarr#5
- Loading branch information
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,13 +64,12 @@ public class UnknownBox : Box | |
/// <exception cref="ArgumentNullException"> | ||
/// <paramref name="file" /> is <see langword="null" />. | ||
/// </exception> | ||
public UnknownBox (BoxHeader header, TagLib.File file, IsoHandlerBox handler) | ||
: base (header, handler) | ||
public UnknownBox (BoxHeader header, TagLib.File file, IsoHandlerBox handler) : base (header, handler) | ||
{ | ||
if (file == null) | ||
throw new ArgumentNullException (nameof (file)); | ||
|
||
data = LoadData (file); | ||
data = file.ReadBlock (DataSize > 0 ? DataSize : 0); | ||
This comment has been minimized.
Sorry, something went wrong.
LeadAssimilator
|
||
} | ||
|
||
#endregion | ||
|
Why? What if we want empty boxes?