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

ImapFolder.executeSimpleCommand is not synchronized and doesn't check for a connection #1283

Closed
philipwhiuk opened this issue Apr 14, 2016 · 1 comment
Labels
type: bug Something is causing incorrect behavior or errors

Comments

@philipwhiuk
Copy link
Contributor

Expected behaviour

Should throw an MessagingException if there's no connection available, but should probably actually try and open a new one if connection is null.

Actual behaviour

java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List com.fsck.k9.mail.store.ImapStore$ImapConnection.executeSimpleCommand(java.lang.String, boolean, com.fsck.k9.mail.store.ImapStore$UntaggedHandler)' on a null object reference
    at com.fsck.k9.mail.store.ImapStore$ImapFolder.executeSimpleCommand(ImapStore.java:862)
    at com.fsck.k9.mail.store.ImapStore$ImapFolderPusher$1.run(ImapStore.java:3151)
    at java.lang.Thread.run(Thread.java:818)

Steps to reproduce

I Have several IMAP push folders (around 15) and often k9 is not able to send messages.
One workaround is to shut down data and turn it on after a few seconds.
I see also in the status a SetFlagBulk 0/1 in the folders status.

Seems to me stuck trying to do something.
I do not see any error in catlog.

Environment

K9-Mail version: 5.010
Device make: LGE
Device model: Nexus 5X
Android version: 6.0.1

Account type (IMAP, POP3, WebDAV/Exchange): IMAP

@philipwhiuk philipwhiuk added the type: bug Something is causing incorrect behavior or errors label Apr 14, 2016
@cketti
Copy link
Member

cketti commented Feb 28, 2019

I believe this is no longer an issue.

@cketti cketti closed this as completed Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something is causing incorrect behavior or errors
Projects
None yet
Development

No branches or pull requests

2 participants