xhsyy / omnidroid

Automatically exported from code.google.com/p/omnidroid
Apache License 2.0
1 stars 0 forks source link

Crash if no Data in Content Provider when OmniDroid tries to use it #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?  I think this will:
0. emulator with OmniDroid on 5554
1. Start a second emulator on 5556
2. On 5554, Clear all TXT messages from the phone so the CP will be empty
3. On 5554, OmniDroid -> Menu -> Run Tests -> App Config
4. On 5554, New OmniHandler -> SMS -> SMS Received -> Done (Filters) -> Add
Action -> SMS -> SEND SMS -> Set Data for Phone -> 5556, Done -> Set Data
for Text -> foo, Done -> Save -> bar, Save.
5. On 5556, Send TXT message to 5554
6. Because we still have the "off-by-one" error, it tries to pull a record
that isn't in the CP yet, which results in a Force Close.

If there isn't a record something is probably wrong, but we need to catch
the exception and handle it nicely, I assume the CP of the Messaging app is
returning null and we're trying to use it.

Original issue reported on code.google.com by case.and...@gmail.com on 5 Jun 2009 at 9:58

GoogleCodeExporter commented 9 years ago
I can take a look at this.

Original comment by rutvi...@gmail.com on 7 Jun 2009 at 3:39

GoogleCodeExporter commented 9 years ago

Original comment by rutvi...@gmail.com on 8 Jun 2009 at 10:47

GoogleCodeExporter commented 9 years ago

Original comment by rutvi...@gmail.com on 15 Jun 2009 at 8:45

GoogleCodeExporter commented 9 years ago
We are removing the content provider classes.  I will mark this as WontFix if 
there
are no objections.

Original comment by londinop on 3 Aug 2009 at 3:32

GoogleCodeExporter commented 9 years ago
Yes, go ahead.

Original comment by rohitbha...@gmail.com on 3 Aug 2009 at 3:52

GoogleCodeExporter commented 9 years ago

Original comment by londinop on 3 Aug 2009 at 5:24