Skip to content

导入标注失败(Unhandled exception) #25

@raptazure

Description

@raptazure

在导入 Clippings.txt 时出现以下报错:

Image
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at KindleMate2.FrmMain.TreeViewBooks_Select() in D:\Coding\KindleMate2\KindleMate2\FrmMain.cs:line 901
   at KindleMate2.FrmMain.TreeViewBooks_AfterSelect(Object sender, TreeViewEventArgs e) in D:\Coding\KindleMate2\KindleMate2\FrmMain.cs:line 2186
   at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)
   at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)
   at System.Windows.Forms.TreeView.WmNotify(Message& m)
   at System.Windows.Forms.TreeView.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)


************** Loaded Assemblies **************
System.Private.CoreLib
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Private.CoreLib.dll
----------------------------------------
KindleMate2
    Assembly Version: 2025.9.17.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\KindleMate2.dll
----------------------------------------
System.Runtime
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Runtime.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Windows.Forms.dll
----------------------------------------
System.ComponentModel.Primitives
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.ComponentModel.Primitives.dll
----------------------------------------
System.Windows.Forms.Primitives
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Windows.Forms.Primitives.dll
----------------------------------------
System.Drawing.Primitives
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Drawing.Primitives.dll
----------------------------------------
System.Collections.Specialized
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Collections.Specialized.dll
----------------------------------------
KindleMate2.Shared
    Assembly Version: 1.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\KindleMate2.Shared.dll
----------------------------------------
System.Runtime.InteropServices
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Runtime.InteropServices.dll
----------------------------------------
System.Threading
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Threading.dll
----------------------------------------
System.Diagnostics.TraceSource
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Diagnostics.TraceSource.dll
----------------------------------------
System.Collections
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Collections.dll
----------------------------------------
KindleMate2.Infrastructure
    Assembly Version: 1.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\KindleMate2.Infrastructure.dll
----------------------------------------
KindleMate2.Domain
    Assembly Version: 1.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\KindleMate2.Domain.dll
----------------------------------------
KindleMate2.Application
    Assembly Version: 1.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\KindleMate2.Application.dll
----------------------------------------
System.ComponentModel.TypeConverter
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.ComponentModel.TypeConverter.dll
----------------------------------------
DarkModeForms
    Assembly Version: 1.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\DarkModeForms.dll
----------------------------------------
System.Drawing.Common
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Drawing.Common.dll
----------------------------------------
Microsoft.Win32.Primitives
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\Microsoft.Win32.Primitives.dll
----------------------------------------
System.ComponentModel.EventBasedAsync
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.ComponentModel.EventBasedAsync.dll
----------------------------------------
System.Threading.Thread
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Threading.Thread.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\Accessibility.dll
----------------------------------------
Microsoft.Win32.SystemEvents
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\Microsoft.Win32.SystemEvents.dll
----------------------------------------
System.Collections.Concurrent
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Collections.Concurrent.dll
----------------------------------------
System.ComponentModel
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.ComponentModel.dll
----------------------------------------
System.Numerics.Vectors
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Numerics.Vectors.dll
----------------------------------------
System.Memory
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Memory.dll
----------------------------------------
System.Runtime.Loader
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Runtime.Loader.dll
----------------------------------------
System.Diagnostics.FileVersionInfo
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Diagnostics.FileVersionInfo.dll
----------------------------------------
KindleMate2.resources
    Assembly Version: 2025.9.17.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\en\KindleMate2.resources.dll
----------------------------------------
System.Resources.Extensions
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Resources.Extensions.dll
----------------------------------------
System.Drawing
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Drawing.dll
----------------------------------------
System.Runtime.Serialization.Formatters
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Runtime.Serialization.Formatters.dll
----------------------------------------
mscorlib
    Assembly Version: 4.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\mscorlib.dll
----------------------------------------
System.Linq
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Linq.dll
----------------------------------------
System.ObjectModel
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.ObjectModel.dll
----------------------------------------
KindleMate2.Shared.resources
    Assembly Version: 1.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\en\KindleMate2.Shared.resources.dll
----------------------------------------
System.Console
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Console.dll
----------------------------------------
Microsoft.Data.Sqlite
    Assembly Version: 9.0.9.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\Microsoft.Data.Sqlite.dll
----------------------------------------
System.Data.Common
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Data.Common.dll
----------------------------------------
SQLitePCLRaw.core
    Assembly Version: 2.1.10.2445
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\SQLitePCLRaw.core.dll
----------------------------------------
netstandard
    Assembly Version: 2.1.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\netstandard.dll
----------------------------------------
SQLitePCLRaw.batteries_v2
    Assembly Version: 2.1.10.2445
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\SQLitePCLRaw.batteries_v2.dll
----------------------------------------
SQLitePCLRaw.provider.e_sqlite3
    Assembly Version: 2.1.10.2445
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\SQLitePCLRaw.provider.e_sqlite3.dll
----------------------------------------
System.Text.RegularExpressions
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Text.RegularExpressions.dll
----------------------------------------
AutoUpdater.NET
    Assembly Version: 1.9.2.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\AutoUpdater.NET.dll
----------------------------------------
System.Text.Encoding.Extensions
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Text.Encoding.Extensions.dll
----------------------------------------
System.Net.ServicePoint
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Net.ServicePoint.dll
----------------------------------------
System.Net.Security
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Net.Security.dll
----------------------------------------
System.Net.WebClient
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Net.WebClient.dll
----------------------------------------
System.Net.Requests
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Net.Requests.dll
----------------------------------------
System.Xml.ReaderWriter
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Xml.ReaderWriter.dll
----------------------------------------
System.Private.Xml
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Private.Xml.dll
----------------------------------------
System.Private.Uri
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Private.Uri.dll
----------------------------------------
System.Xml.XmlSerializer
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Xml.XmlSerializer.dll
----------------------------------------
System.Net.Primitives
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Net.Primitives.dll
----------------------------------------
System.Net.WebHeaderCollection
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Net.WebHeaderCollection.dll
----------------------------------------
System.Net.Http
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Net.Http.dll
----------------------------------------
System.Diagnostics.Tracing
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Diagnostics.Tracing.dll
----------------------------------------
System.Net.NetworkInformation
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Net.NetworkInformation.dll
----------------------------------------
System.Runtime.Intrinsics
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Runtime.Intrinsics.dll
----------------------------------------
System.Collections.NonGeneric
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Collections.NonGeneric.dll
----------------------------------------
System.Security.Cryptography
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Security.Cryptography.dll
----------------------------------------
System.Diagnostics.DiagnosticSource
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Diagnostics.DiagnosticSource.dll
----------------------------------------
System.Net.Sockets
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Net.Sockets.dll
----------------------------------------
System.Threading.Overlapped
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Threading.Overlapped.dll
----------------------------------------
System.Security.Principal.Windows
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Security.Principal.Windows.dll
----------------------------------------
System.Security.Claims
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Security.Claims.dll
----------------------------------------
System.Management
    Assembly Version: 9.0.0.9
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Management.dll
----------------------------------------
System.IO.FileSystem.DriveInfo
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.IO.FileSystem.DriveInfo.dll
----------------------------------------
MediaDevices
    Assembly Version: 1.10.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\MediaDevices.dll
----------------------------------------
Microsoft.Win32.Registry
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\Microsoft.Win32.Registry.dll
----------------------------------------
System.Reflection.Emit.ILGeneration
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Reflection.Emit.ILGeneration.dll
----------------------------------------
System.Reflection.Emit
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Reflection.Emit.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Location: 
----------------------------------------
System.Reflection.Primitives
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Reflection.Primitives.dll
----------------------------------------
System.Threading.ThreadPool
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Threading.ThreadPool.dll
----------------------------------------
System.Diagnostics.StackTrace
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Diagnostics.StackTrace.dll
----------------------------------------
System.Reflection.Metadata
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Reflection.Metadata.dll
----------------------------------------
System.Collections.Immutable
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.Collections.Immutable.dll
----------------------------------------
System.IO.Compression
    Assembly Version: 8.0.0.0
    Location: C:\Users\hermi\Downloads\KindleMate2_x64_runtime\KindleMate2_x64_runtime\System.IO.Compression.dll
----------------------------------------

************** JIT Debugging **************


Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions