Nullpointerexception When Writing To External Sd Card On Android


Rnway

Recommended Posts

I'm using Bittorrent sync on my Android phone.

 

While I am running 4.4.4, I'm running CyanogenMod which still allows apps to write to the SD card. I've verified this using several apps, including SyncThing.

 

However, when I attempt to sync to a folder on the SD card, or make a new folder on the SD card, I get the following exception

 

java.lang.NullPointerException at

com.bittorrent.sync.utils.FileUtils.isDirInExtSdCard(FileUtils.java:53) at

com.bittorrent.sync.ui.fragment.FileListFragment.checkPermissions(FileListFragment.java:347) at

com.bittorrent.sync.ui.fragment.FileListFragment.onOptionsItemSelected(FileListFragment.java:423) at

...

 

I've submitted a bug report using Android's report feature, but I figured I'd bring it up here as well.

 

Oddly enough, syncing to folders on the SD card works just fine on my tablet, which is also running 4.4.4 CyanogenMod.

 

 

Link to comment
Share on other sites

I've now tested on 3 different SD cards formatted as both FAT and exFAT, including the one that is working in my tablet, so I'm fairly certain it's not a problem with the SD card.

 

Correction: I assumed this problem was due to the SD card. I cannot currently put syncs in any folder other than the default. I get the same error every time.

Edited by Rnway
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.