[UnitTest] [Teledisk] Null reference reading sector
claunia opened this issue · 0 comments
claunia commented
Version
Development commit
Commit hash
HEAD
Tested debug version?
- Yes
Which operating systems have you used?
- Windows
- Linux
- macOS
- Other
What is the architectural bit size you're using?
- 32-bit
- 64-bit
- Unsure or unknown
What processor are you using?
- An Intel or AMD
- An ARM or Apple Silicon
- Unsure or unknown
Image format
TeleDisk
Application that created the image
pce
What were you doing when it failed?
- I was converting the image to another format...
- I was retrieving image information...
- I was retrieving filesystem information...
- I was listing the filesystem contents...
- I was extracting the filesystem contents...
- I was creating a metadata sidecar...
- I was checksumming the image...
- I was verifying the image...
- I was calculating the image entropy...
Destination image format
No response
Filesystem
No response
Description
Null reference exception.
Exact command line used
Unit test
Expected behavior
Correct hash.
Actual behavior
Null reference exception.
Output of command execution with debug output enabled
System.NullReferenceException : Object reference not set to an instance of an object.
at Aaru.DiscImages.TeleDisk.ReadSectors(UInt64 sectorAddress, UInt32 length, Byte[]& buffer) in /Users/claunia/Development/Aaru/Aaru/Aaru.Images/TeleDisk/Read.cs:line 591
at Aaru.Tests.Images.BlockMediaImageTest.<>c__DisplayClass4_0.<Hashes>b__0() in /Users/claunia/Development/Aaru/Aaru/Aaru.Tests/Images/BlockMediaImageTest.cs:line 118
at NUnit.Framework.Assert.Multiple(TestDelegate testDelegate)
at Aaru.Tests.Images.BlockMediaImageTest.Hashes() in /Users/claunia/Development/Aaru/Aaru/Aaru.Tests/Images/BlockMediaImageTest.cs:line 77
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
Affected image
No response