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

Cannot invoke because return value of getzFolder() is null #40

Closed
adxlv-co opened this issue Jun 2, 2023 · 4 comments · Fixed by #43
Closed

Cannot invoke because return value of getzFolder() is null #40

adxlv-co opened this issue Jun 2, 2023 · 4 comments · Fixed by #43
Labels
question Further information is requested

Comments

@adxlv-co
Copy link

adxlv-co commented Jun 2, 2023

(Thank you for working on this tool!)

I'm getting the following error when executing apple-notes-liberator:

Cannot invoke "de.hamburgchimps.apple.notes.liberator.entity.NotesCloudObject.getzTitle2()" because the return value of "de.hamburgchimps.apple.notes.liberator.entity.NotesCloudObject.getzFolder()" is null

The situation seems similar to #25: a notes.sqlite was generated and apparently filled with the correct data.

Running version 2.1.0.

@alexkolson
Copy link
Contributor

Hey there! Thanks for opening this issue! My computer crashed and burned so I have to get it up and running again before I can take a look at this! I wanted to let you know though that I have noticed your issue and will be sure to take a look when I can get my dev environment set up again!

@alexkolson
Copy link
Contributor

Hi @adxlv-co, could you try v2.2.1 and see if it fixes your issue? Thanks!

@alexkolson alexkolson added the question Further information is requested label Jun 11, 2023
@adxlv-co
Copy link
Author

Hello, @alexkolson! Thank you so much for investigating this! I'm running 2.2.2, and I got a different error -- not sure I'm doing something wrong on my side. This is what I'm getting:

could not prepare statement [[SQLITE_ERROR] SQL error or missing database (no such column: n1_0.zMergeableData1)] [select n1_0.Z_PK,n1_0.zCreationDate,n1_0.Z_ENT,n1_0.zFileName,n1_0.zFolder,n1_0.zIdentifier,n1_0.zMedia,n1_0.zMergeableData,n1_0.zMergeableData1,n1_0.zMergeableData2,n1_0.zModificationDate,n1_0.Z_OPT,n1_0.zTitle1,n1_0.zTitle2,n1_0.zTypeUti from ZICCLOUDSYNCINGOBJECT n1_0 where n1_0.Z_PK in (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)]

Let me know if I can help you debugging this in any way!

(Although I uninstalled the previous version, deleted all jbang cache, and installed directly from the 2.2.2 release link, -V outputs 2.1.0. I wonder if this is hard-coded in this file? I'm not familiar with Java projects so I could be entirely wrong, only found that string using code search.)

Again, thank you very much!

@alexkolson
Copy link
Contributor

Hey nice catch on the version number...I forgot to update that...my bad 🤦

As far as your new error, I think I know what's going on, and I think I broke it for you with #45 in an attempt to fix a problem I was having after getting my computer up and running post-crash and then updating macOS. I did not take into account that just because my Notes.app database schema apparently changed in the update, not everyone's probably did and/or not everyone is running the same version of macOS as me. Again, my bad. I have created #47 to track this and will work on it next. I will close this issue and report on progress in that issue. Thanks for your patience and feel free of course to open more issues or add more comments in #47 as you see fit.

Hopefully soon you can actually use this 😅.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants