Home / GitHub Page

Error:Item cannot be null


#1

Hello, I am a Chinese user. I like this software very much.

But recently, there was a problem. When the Android version synchronizes, it prompts errors.
How to deal with it.

Both the Android version and the PC version are up to date.


#2

wrong path provided?


#3

It was also the directory before.

I want to know where the Android version of the note is stored by default.


#4

Are there any empty .md files in the sync target?


#5

How to identify empty.Md files?


#6


#7

Hi,
if you could use a file manager on your android device and check those files in the “directory to synchronise with path”, may be one of the file is 0 size


#8

Thank you for your reply
After checking the.Md file in the folder, no 0kb.Md file was found.
But there is a “.Sync” empty folder.


#9

I would expect the same error would show up in the desktop version. Is there any chance you could start the desktop app with a fresh new profile, then sync and see if you get any error in the log?

You would need to start Joplin this way:

/path/to/joplin --profile /path/to/tempprofile --stack-trace-enabled --log-level debug --open-dev-tools

That way your existing profile won’t be touch. Then if you sync, hopefully you should get the same error message but with more information. In that case, please could you post here any message from the console as well as the log files in the temp profile directory?


#10

Thank you for your reply.

But I didn’t see your reply.
Especially this paragraph:


I need to debug in Android mobile. Please tell me the normal steps. Thank you very much.

I use the Android version of Joplin to synchronize: in the form of File System, the synchronization goal in software. Setting up a folder in Android’s memory to synchronize notes. By copying the notes in this folder to the folder on the computer, we can synchronize the notes on the computer side with those on the Android side. It used to work, but now it’s not working, which makes me very distressed.


#11

It’s not possible to debug that’s why I’ve suggested to start from scratch on desktop as then we can get logs, etc.

Otherwise, on Android I see you are using a paths with spaces in it - could you try if it works with a path without spaces?

Also maybe check the list of files on Android - are they all .md files in the same format?


#12

I posted the debug report.

syncReport-1541683831910:

Date,Level,Message
11-08T21:30:26,30,"""Reducer action", "NAV_BACK""
11-08T21:30:10,30,"""Reducer action", "NOTE_UPDATE_ALL""
11-08T21:30:04,30,"""Reducer action", "NOTE_UPDATE_ALL""
11-08T21:30:04,30,"""Reducer action", "NOTE_UPDATE_ALL""
11-08T21:30:02,30,"""Reducer action", "FOLDER_UPDATE_ALL""
11-08T21:30:02,30,"""Reducer action", "SYNC_COMPLETED""
11-08T21:30:02,20,"""Error: Item cannot be null
value@index.android.bundle:450:2592
value@index.android.bundle:450:6703
index.android.bundle:450:10978
k@index.android.bundle:89:3838
index.android.bundle:89:4877
index.android.bundle:89:4020
k@index.android.bundle:89:3838
n@index.android.bundle:89:4070
index.android.bundle:89:4219
f@index.android.bundle:87:155
index.android.bundle:87:882
index.android.bundle:90:1815
y@index.android.bundle:90:657
C@index.android.bundle:90:1021
callImmediates@index.android.bundle:90:3216
[native code]
value@index.android.bundle:19:3029
index.android.bundle:19:1401
value@index.android.bundle:19:2721
value@index.android.bundle:19:1371
[native code]
value@index.android.bundle:19:1306
[native code]""
11-08T21:30:02,30,"""Total resources: 87""
11-08T21:30:02,20,"""There was some errors:""
11-08T21:30:02,30,"""Total notes: 92""
11-08T21:30:02,30,"""Total folders: 15""
11-08T21:30:02,30,"""fetchingTotal: 54""
11-08T21:30:02,30,"""Operations completed: ""
11-08T21:30:02,10,"""Error: Item cannot be null
value@index.android.bundle:450:2592
value@index.android.bundle:450:6703
index.android.bundle:450:10978
k@index.android.bundle:89:3838
index.android.bundle:89:4877
index.android.bundle:89:4020
k@index.android.bundle:89:3838
n@index.android.bundle:89:4070
index.android.bundle:89:4219
f@index.android.bundle:87:155
index.android.bundle:87:882
index.android.bundle:90:1815
y@index.android.bundle:90:657
C@index.android.bundle:90:1021
callImmediates@index.android.bundle:90:3216
[native code]
value@index.android.bundle:19:3029
index.android.bundle:19:1401
value@index.android.bundle:19:2721
value@index.android.bundle:19:1371
[native code]
value@index.android.bundle:19:1306
[native code]""
11-08T21:30:01,30,"""Reducer action", "NOTE_UPDATE_ALL""
11-08T21:30:01,30,"""Reducer action", "NOTE_UPDATE_ALL""
11-08T21:30:01,30,"""Reducer action", "SYNC_STARTED""
11-08T21:30:01,30,"""Starting scheduled sync""
11-08T21:30:01,30,"""Preparing scheduled sync""
11-08T21:30:01,30,"""Scheduling sync operation...""
11-08T21:30:01,30,"""Running background sync on timer...""
11-08T21:30:01,30,"""Garbage collecting alarms...""
11-08T20:49:24,30,"""Reducer action", "FOLDER_UPDATE_ALL""
11-08T20:49:24,30,"""Reducer action", "SYNC_COMPLETED""
11-08T20:49:24,20,"""There was some errors:""
11-08T20:49:24,20,"""Error: Item cannot be null
value@index.android.bundle:450:2592
value@index.android.bundle:450:6703
index.android.bundle:450:10978
k@index.android.bundle:89:3838
index.android.bundle:89:4877
index.android.bundle:89:4020
k@index.android.bundle:89:3838
n@index.android.bundle:89:4070
index.android.bundle:89:4219
f@index.android.bundle:87:155
index.android.bundle:87:882
index.android.bundle:90:1815
y@index.android.bundle:90:657
C@index.android.bundle:90:1021
callImmediates@index.android.bundle:90:3216
[native code]
value@index.android.bundle:19:3029
index.android.bundle:19:1401
value@index.android.bundle:19:2721
value@index.android.bundle:19:1371
[native code]
value@index.android.bundle:19:1306
[native code]""
11-08T20:49:24,30,"""Total notes: 92""
11-08T20:49:24,30,"""Total resources: 87""
11-08T20:49:24,30,"""Total folders: 15""
11-08T20:49:24,30,"""fetchingTotal: 54""
11-08T20:49:24,30,"""Operations completed: ""
11-08T20:49:24,10,"""Error: Item cannot be null
value@index.android.bundle:450:2592
value@index.android.bundle:450:6703
index.android.bundle:450:10978
k@index.android.bundle:89:3838
index.android.bundle:89:4877
index.android.bundle:89:4020
k@index.android.bundle:89:3838
n@index.android.bundle:89:4070
index.android.bundle:89:4219
f@index.android.bundle:87:155
index.android.bundle:87:882
index.android.bundle:90:1815
y@index.android.bundle:90:657
C@index.android.bundle:90:1021
callImmediates@index.android.bundle:90:3216
[native code]
value@index.android.bundle:19:3029
index.android.bundle:19:1401
value@index.android.bundle:19:2721
value@index.android.bundle:19:1371
[native code]
value@index.android.bundle:19:1306
[native code]""
11-08T20:49:23,30,"""Reducer action", "NOTE_UPDATE_ALL""
11-08T20:49:23,30,"""Reducer action", "NOTE_UPDATE_ALL""
11-08T20:49:23,30,"""Reducer action", "SYNC_STARTED""
11-08T20:49:23,30,"""Starting scheduled sync""
11-08T20:49:23,30,"""Preparing scheduled sync""
11-08T20:49:23,30,"""Scheduling sync operation...""
11-08T20:49:23,30,"""Running background sync on timer...""
11-08T20:38:59,30,"""Reducer action", "NOTE_UPDATE_ALL""
11-08T20:38:59,30,"""Reducer action", "NOTE_UPDATE_ALL""
11-08T20:36:59,30,"""Reducer action", "FOLDER_UPDATE_ALL""
11-08T20:36:59,30,"""Reducer action", "SYNC_COMPLETED""
11-08T20:36:59,20,"""There was some errors:""
11-08T20:36:59,20,"""Error: Item cannot be null
value@index.android.bundle:450:2592
value@index.android.bundle:450:6703
index.android.bundle:450:10978
k@index.android.bundle:89:3838
index.android.bundle:89:4877
index.android.bundle:89:4020
k@index.android.bundle:89:3838
n@index.android.bundle:89:4070
index.android.bundle:89:4219
f@index.android.bundle:87:155
index.android.bundle:87:882
index.android.bundle:90:1815
y@index.android.bundle:90:657
C@index.android.bundle:90:1021
callImmediates@index.android.bundle:90:3216
[native code]
value@index.android.bundle:19:3029
index.android.bundle:19:1401
value@index.android.bundle:19:2721
value@index.android.bundle:19:1371
[native code]
value@index.android.bundle:19:1306
[native code]""
11-08T20:36:59,30,"""Total notes: 92""
11-08T20:36:59,30,"""Total resources: 87""
11-08T20:36:59,30,"""Total folders: 15""
11-08T20:36:59,30,"""fetchingTotal: 54""
11-08T20:36:59,30,"""Operations completed: ""
11-08T20:36:59,10,"""Error: Item cannot be null
value@index.android.bundle:450:2592
value@index.android.bundle:450:6703
index.android.bundle:450:10978
k@index.android.bundle:89:3838
index.android.bundle:89:4877
index.android.bundle:89:4020
k@index.android.bundle:89:3838
n@index.android.bundle:89:4070
index.android.bundle:89:4219
f@index.android.bundle:87:155
index.android.bundle:87:882
index.android.bundle:90:1815
y@index.android.bundle:90:657
C@index.android.bundle:90:1021
callImmediates@index.android.bundle:90:3216
[native code]
value@index.android.bundle:19:3029
index.android.bundle:19:1401
value@index.android.bundle:19:2721
value@index.android.bundle:19:1371
[native code]
value@index.android.bundle:19:1306
[native code]""
11-08T20:36:58,30,"""Reducer action", "NOTE_UPDATE_ALL""
11-08T20:36:58,30,"""Reducer action", "NOTE_UPDATE_ALL""
11-08T20:36:58,30,"""Reducer action", "SYNC_STARTED""
11-08T20:36:58,30,"""Starting scheduled sync""
11-08T20:36:58,30,"""Scheduling sync operation...""
11-08T20:36:58,30,"""Preparing scheduled sync""
11-08T20:36:58,30,"""Running background sync on timer...""
11-08T20:25:55,30,"""Reducer action", "NOTE_UPDATE_ALL""
11-08T20:23:55,30,"""Settings have been saved.""
11-08T20:23:55,30,"""Saving settings...""
11-08T20:23:54,30,"""Reducer action", "SETTING_UPDATE_ONE""
11-08T20:21:40,30,"""ResourceService::deleteOrphanResources:", "[]""
11-08T20:21:40,30,"""ResourceService::indexNoteResources: Completed""
11-08T20:21:40,30,"""Settings have been saved.""
11-08T20:21:40,30,"""ResourceService::indexNoteResources: Start""
11-08T20:21:40,30,"""Saving settings...""
11-08T20:21:39,30,"""Reducer action", "SETTING_UPDATE_ONE""
11-08T20:21:30,30,"""Reducer action", "NAV_GO, Config""
11-08T20:21:27,30,"""Reducer action", "NAV_GO, Status""
11-08T20:21:25,30,"""Reducer action", "NAV_GO, Log""
11-08T20:21:22,30,"""Reducer action", "SIDE_MENU_CLOSE""
11-08T20:21:21,30,"""Reducer action", "SIDE_MENU_OPEN""
11-08T20:21:18,30,"""Reducer action", "FOLDER_UPDATE_ALL""
11-08T20:21:18,30,"""Reducer action", "SYNC_COMPLETED""
11-08T20:21:18,20,"""There was some errors:""
11-08T20:21:18,20,"""Error: Item cannot be null
value@index.android.bundle:450:2592
value@index.android.bundle:450:6703
index.android.bundle:450:10978
k@index.android.bundle:89:3838
index.android.bundle:89:4877
index.android.bundle:89:4020
k@index.android.bundle:89:3838
n@index.android.bundle:89:4070
index.android.bundle:89:4219
f@index.android.bundle:87:155
index.android.bundle:87:882
index.android.bundle:90:1815
y@index.android.bundle:90:657
C@index.android.bundle:90:1021
callImmediates@index.android.bundle:90:3216
[native code]
value@index.android.bundle:19:3029
index.android.bundle:19:1401
value@index.android.bundle:19:2721
value@index.android.bundle:19:1371
[native code]
value@index.android.bundle:19:1306
[native code]""
11-08T20:21:18,30,"""Total folders: 15""
11-08T20:21:18,30,"""Total notes: 92""
11-08T20:21:18,30,"""Total resources: 87""
11-08T20:21:18,30,"""fetchingTotal: 54""
11-08T20:21:18,30,"""Operations completed: ""
11-08T20:21:18,10,"""Error: Item cannot be null
value@index.android.bundle:450:2592
value@index.android.bundle:450:6703
index.android.bundle:450:10978
k@index.android.bundle:89:3838
index.android.bundle:89:4877
index.android.bundle:89:4020
k@index.android.bundle:89:3838
n@index.android.bundle:89:4070
index.android.bundle:89:4219
f@index.android.bundle:87:155
index.android.bundle:87:882
index.android.bundle:90:1815
y@index.android.bundle:90:657
C@index.android.bundle:90:1021
callImmediates@index.android.bundle:90:3216
[native code]
value@index.android.bundle:19:3029
index.android.bundle:19:1401
value@index.android.bundle:19:2721
value@index.android.bundle:19:1371
[native code]
value@index.android.bundle:19:1306
[native code]""
11-08T20:21:17,30,"""Reducer action", "SYNC_STARTED""
11-08T20:21:17,30,"""Starting scheduled sync""
11-08T20:21:17,30,"""Preparing scheduled sync""
11-08T20:21:17,30,"""Scheduling sync operation...""
11-08T20:21:13,30,"""Reducer action", "SIDE_MENU_OPEN""
11-08T20:21:13,30,"""Reducer action", "SIDE_MENU_TOGGLE""
11-08T20:21:12,30,"""Reducer action", "NAV_BACK""
11-08T20:21:11,30,"""Reducer action", "DECRYPTION_WORKER_SET""
11-08T20:21:11,30,"""DecryptionWorker: completed decryption.""
11-08T20:21:11,30,"""Reducer action", "DECRYPTION_WORKER_SET""
11-08T20:21:11,30,"""DecryptionWorker: starting decryption...""
11-08T20:21:10,30,"""Reducer action", "NOTE_UPDATE_ALL""
11-08T20:21:10,30,"""ResourceFetcher: Auto-added resources: 0""
11-08T20:21:10,30,"""Reducer action", "APP_STATE_SET""
11-08T20:21:10,30,"""Application initialized""
11-08T20:21:10,30,"""Scheduling sync operation...""
11-08T20:21:10,30,"""Reducer action", "NAV_GO, Notes""
11-08T20:21:10,30,"""Reducer action", "FOLDER_SET_COLLAPSED_ALL""
11-08T20:21:10,30,"""Reducer action", "MASTERKEY_UPDATE_ALL""
11-08T20:21:10,30,"""Reducer action", "TAG_UPDATE_ALL""
11-08T20:21:10,30,"""Reducer action", "FOLDER_UPDATE_ALL""
11-08T20:21:10,30,"""Loading folders...""
11-08T20:21:10,30,"""Loaded master keys: 0""
11-08T20:21:10,30,"""Trying to load 0 master keys...""
11-08T20:21:10,30,"""Scheduling sync operation...""
11-08T20:21:10,30,"""Reducer action", "MASTERKEY_REMOVE_NOT_LOADED""
11-08T20:21:10,30,"""Loaded master keys: 0""
11-08T20:21:10,30,"""Trying to load 0 master keys...""
11-08T20:21:10,30,"""Sync target: 2""
11-08T20:21:10,30,"""Reducer action", "SETTING_UPDATE_ALL""
11-08T20:21:10,30,"""Loading settings...""
11-08T20:21:10,30,"""Database is ready.""
11-08T20:21:10,30,"""Current database version", "13""
11-08T20:21:10,30,"""Checking for database schema update...""
11-08T20:21:10,30,"""Database was open successfully""
11-08T20:21:10,30,"""Starting application net.cozic.joplin-mobile (prod)""
11-08T20:21:10,30,"""====================================""
11-08T16:17:35,30,"""Reducer action", "NOTE_UPDATE_ALL""
11-08T16:17:34,30,"""Reducer action", "NAV_BACK""
11-08T16:17:33,30,"""Reducer action", "NOTE_UPDATE_ALL""
11-08T16:17:23,30,"""Reducer action", "NOTE_UPDATE_ALL""
11-08T16:17:23,30,"""Reducer action", "FOLDER_UPDATE_ALL""
11-08T16:17:23,30,"""Reducer action", "SYNC_COMPLETED""
11-08T16:17:23,30,"""Total notes: 92""
11-08T16:17:23,30,"""Total resources: 87""
11-08T16:17:23,30,"""Total folders: 15""
11-08T16:17:23,30,"""updateRemote: 1""
11-08T16:17:23,30,"""Operations completed: ""
11-08T16:17:22,30,"""Reducer action", "SYNC_STARTED""
11-08T16:17:22,30,"""Starting scheduled sync""
11-08T16:17:22,30,"""Preparing scheduled sync""
11-08T16:17:20,30,"""Reducer action", "NAV_BACK""
11-08T16:17:17,30,"""Scheduling sync operation...""
11-08T16:17:17,30,"""Reducer action", "EVENT_NOTE_ALARM_FIELD_CHANGE""
11-08T16:17:17,30,"""Reducer action", "NOTE_UPDATE_ONE""
11-08T16:16:49,30,"""Reducer action", "FOLDER_UPDATE_ALL""
11-08T16:16:49,30,"""Reducer action", "SYNC_COMPLETED""
11-08T16:16:49,30,"""Total resources: 87""
11-08T16:16:49,30,"""Total notes: 92""
11-08T16:16:49,30,"""Total folders: 15""
11-08T16:16:49,30,"""updateRemote: 1""
11-08T16:16:49,30,"""Operations completed: ""
11-08T16:16:49,30,"""Reducer action", "SYNC_STARTED""
11-08T16:16:49,30,"""Starting scheduled sync""
11-08T16:16:49,30,"""Preparing scheduled sync""
11-08T16:16:44,30,"""Scheduling sync operation...""
11-08T16:16:44,30,"""Reducer action", "EVENT_NOTE_ALARM_FIELD_CHANGE""
11-08T16:16:44,30,"""Reducer action", "NOTE_UPDATE_ONE""
11-08T16:16:25,30,"""ResourceService::deleteOrphanResources:", "[]""
11-08T16:16:25,30,"""ResourceService::indexNoteResources: Completed""
11-08T16:16:25,30,"""ResourceService::indexNoteResources: Start""
11-08T16:16:15,30,"""Reducer action", "NAV_GO, Note""
11-08T16:16:13,30,"""Reducer action", "NAV_BACK""
11-08T16:16:11,30,"""Reducer action", "NAV_GO, Note""
11-08T16:16:10,30,"""Reducer action", "NAV_BACK""
11-08T16:16:07,30,"""Reducer action",

#13

for long log or piece of code use

```
long log
```

that will be easier to read :slight_smile: