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

Android Error File sync : Attempt to get length of null array #581

Closed
pled opened this issue May 31, 2018 · 4 comments
Closed

Android Error File sync : Attempt to get length of null array #581

pled opened this issue May 31, 2018 · 4 comments
Labels
bug It's a bug

Comments

@pled
Copy link

pled commented May 31, 2018

Operating system

  • Android (LineageOS 7)

Application

  • Mobile

I am unable to sync the android app using "File system" type. The error is
Error: Error: Attempt to get length of null array. Path : /storage/3865-6232/Android/data/com.nutomic.syncthingandroid/files/Joplin

joplin-error

Where 3865-6232 is my SD-CARD, and the directory the one from Syncthing where Android allows r/w. Using similar directories to sync other apps without issue (ie tomboy).

@robojeb
Copy link

robojeb commented Jun 1, 2018

I am having the same problem.
My path is "/storage/emulated/0/Download/Sync/joplin_notes"

@laurent22 laurent22 added the bug It's a bug label Jun 9, 2018
@montgomeri
Copy link

You have to add storage permission for the app in the android settings manually.
Otherwise the app wont have any permission to read/write the sdcard.

A prompt should be added to ask the user for that permission if denied.

@laurent22
Copy link
Owner

Yes the last time I checked, the React Native API to request permissions was buggy, so instead for now I've added the info to the config screen.

@pled
Copy link
Author

pled commented Jun 10, 2018

On my side, I moved to nextcloud sync, everything works well.
I confirm that looking at the app permissions, "stockage" was not set by default (LineageOS 7).

@lock lock bot locked and limited conversation to collaborators Oct 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug It's a bug
Projects
None yet
Development

No branches or pull requests

4 participants