engrKaka / android-sms

This application allows you to automatically backup SMS messages on your Android device to Gmail.
4 stars 1 forks source link

java.lang.IllegalArgumentException: Unknown URL content://contacts/phones/filter/ #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
App crashes with the exception:
java.lang.IllegalArgumentException: Unknown URL 
content://contacts/phones/filter/

Stacktrace from Gaal attached.

If you also encounter this bug, please leave a comment with a stacktrace if 
possible.

Original issue reported on code.google.com by chstu...@gmail.com on 7 Mar 2009 at 4:47

Attachments:

GoogleCodeExporter commented 8 years ago
Looks like if the address is empty probably (""), we query the contacts storage 
with 
an invalid URI.

A bug fix would handle whitespace-only addresses the same as null addresses.

Original comment by chstu...@gmail.com on 7 Mar 2009 at 5:11

GoogleCodeExporter commented 8 years ago
The messaging application used to crash as well from this kind of messages, but 
this
doesn't happend anymore since the latest update of android.

Original comment by hvw...@gmail.com on 5 May 2009 at 2:49

GoogleCodeExporter commented 8 years ago
I wrote a quick patch to fix this issue. It trims the address string and checks 
it has 
more than 0 characters. Perhaps a better fix would be to change it to a string 
such as 
"Unknown" but I'll leave that to chstuder decide.

thanks
bramp

P.S Now I can backup that spam SMS that has been crashing this app for a week :)

Original comment by brampton on 22 Jul 2009 at 12:19

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks, brampton, I have included your patch in revision r57 and this bug 
should be
fixed in the next release.

Original comment by chstuder...@gmail.com on 2 Aug 2009 at 9:55

GoogleCodeExporter commented 8 years ago

Original comment by chstu...@gmail.com on 2 Aug 2009 at 9:56

GoogleCodeExporter commented 8 years ago
Issue 37 has been merged into this issue.

Original comment by chstu...@gmail.com on 2 Aug 2009 at 10:15