Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.NullReferenceException: Object reference not set to an instance of an object. #23

Closed
rffrasca opened this issue Dec 24, 2023 Discussed in #22 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@rffrasca
Copy link
Owner

rffrasca commented Dec 24, 2023

Discussed in #22

Originally posted by rffrasca December 24, 2023
When attempting to upload one or more PDF's that is missing a title, author, or subject; an unhandled exception is being thrown after the PDF's are copied into the top level of the Upload folder. Normally, when a PDF is missing a title, author, or subject; PDFKeeper is supposed to move the PDF to the UploadRejected folder. Unfortunately, because PDFKeeper has crashed, the PDF's will remain in the Upload folder causing the same unhandled exception to be thrown when PDFKeeper attempts to upload again after restarting.

Both PDFKeeper v9.0.0 and v9.1.0 are impacted by this bug.

The stack trace of exception that is logged to PDFKeeper.log
System.NullReferenceException: Object reference not set to an instance of an object.
at PDFKeeper.Core.Rules.PdfMetadataRule.CheckForViolation()
at PDFKeeper.Core.FileIO.PDF.PdfUploader.StagePdfFilesInUploadDirectory()
at PDFKeeper.Core.Presenters.MainPresenter.ExecuteUpload()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at PDFKeeper.Presentation.MainView.VB$StateMachine_491_UploadTimer_Tick.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

To prevent PDFKeeper from crashing again after restarting; move the PDF's out of C:\Users\your_username\AppData\Roaming\Robert F. Frasca\PDFKeeper\Upload and then restart PDFKeeper.

@rffrasca rffrasca added the bug label Dec 24, 2023
@rffrasca rffrasca self-assigned this Dec 24, 2023
@rffrasca rffrasca pinned this issue Dec 24, 2023
@rffrasca rffrasca added this to the 9.1.1 milestone Dec 24, 2023
@rffrasca
Copy link
Owner Author

PDFKeeper 9.1.1 was released today.

@rffrasca rffrasca unpinned this issue Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant