Skip to content

Prevent contact number NPE#5460

Closed
cascheberg wants to merge 1 commit into
signalapp:masterfrom
cascheberg:fix_contacts_npe
Closed

Prevent contact number NPE#5460
cascheberg wants to merge 1 commit into
signalapp:masterfrom
cascheberg:fix_contacts_npe

Conversation

@cascheberg
Copy link
Copy Markdown
Contributor

Contributor checklist

  • I am following the Code Style Guidelines
  • I have tested my contribution
  • My contribution is fully baked and ready to be merged as is
  • I have made the choice whether I want the BitHub reward or not by omitting or adding the word FREEBIE in my commit message

Description

I can't reproduce the crash in #5454, but this should fix it: if the returned contact phone number is null, fall through to return default RecipientDetails.
It's still not clear to me which result is actually returned.
I have some "numberless" SMS in my stock messaging app, and there I can't even add the sender to my contacts.

//FREEBIE

@glems2
Copy link
Copy Markdown

glems2 commented Apr 28, 2016

@cascheberg Great, thank you for the fix!
Any idea on who might merge this and when? Or what might be in the way of doing so?
I'm currently up in the air about Signal.

@siloportem
Copy link
Copy Markdown
Contributor

Got also an SMS that caused the crash described in #5454, this fixes it for me. After compiling my own Signal apk with this patch applied, I am able to access all my messages again including the SMS that caused the crash. Thank you, hope this will be merged into the main-branch soon.

@edent
Copy link
Copy Markdown

edent commented May 4, 2016

Is there any way I can apply this to an existing installation? My messages are trapped due to #5454 :-(

Or, any details on when this will be merged & released?

@2-4601
Copy link
Copy Markdown
Contributor

2-4601 commented May 4, 2016

If you have compiled Signal yourself or you have root you can do that. But it's better to ask help for those at https://whispersystems.discoursehosting.net/

@smarek
Copy link
Copy Markdown
Contributor

smarek commented May 9, 2016

Thank you, I now did verify, this PR is correct solution for problems discussed in #5454

@moxie0 moxie0 closed this in 49a539a May 20, 2016
moxie0 pushed a commit that referenced this pull request May 20, 2016
BLeQuerrec pushed a commit to SilenceIM/Silence that referenced this pull request Jul 30, 2016
BLeQuerrec pushed a commit to SilenceIM/Silence that referenced this pull request Jul 30, 2016
BLeQuerrec pushed a commit to SilenceIM/Silence that referenced this pull request Jul 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants