HamburgChimps / apple-notes-liberator

Free your Apple Notes data from Notes.app
MIT License
975 stars 23 forks source link

Cannot invoke "String.isEmpty()" because "typeIdentifier" is null #9

Closed cedricloneux closed 1 year ago

cedricloneux commented 1 year ago

tried to run the v0.1.0 release on ARM mac and got error Cannot invoke "String.isEmpty()" because "typeIdentifier" is null

here is the terminal history:

~ ₿ java -version
openjdk version "19.0.1" 2022-10-18
OpenJDK Runtime Environment Homebrew (build 19.0.1)
OpenJDK 64-Bit Server VM Homebrew (build 19.0.1, mixed mode, sharing)
~ ₿ java -jar ~/Downloads/apple-notes-liberator.jar 
Cannot invoke "String.isEmpty()" because "typeIdentifier" is null 
alexkolson commented 1 year ago

Hey @cedricloneux, my bad, should have been checking for null here. Thanks @minhoryang for the fix!

Although I 'm still not convinced it will work in your case, as i'm not sure typeIdentifier should be null. I will wait to close this a bit to hear back from you if you are so inclined! Really interested if you can now get any json at all out of your notes db now.

baibanbao commented 1 year ago

the same problem, on my m1 mac, when running the command it says

Cannot invoke "String.isEmpty()" because "typeIdentifier" is null

Please debug it.

alexkolson commented 1 year ago

@baibanbao hi there! Have you tried with v0.1.1? If you are still getting this issue with this version let me know.

baibanbao commented 1 year ago

Thank you. After downloading the new release, it was solved.

alexkolson commented 1 year ago

Going to close this but if @cedricloneux or anyone else has this issue with the latest release feel free to open a new one and I'll take another look.