Closed
Bug 724200
Opened 12 years ago
Closed 12 years ago
SyncStorageRequest.delete() results in NullPointerException
Categories
(Firefox for Android Graveyard :: Android Sync, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla13
People
(Reporter: emtwo, Assigned: emtwo)
References
Details
(Whiteboard: [qa-])
addHeader() in delete() should only be called once resource.request has been initialized
Assignee | ||
Updated•12 years ago
|
Priority: -- → P2
Comment 1•12 years ago
|
||
Per IRC discussion: 20:48:57 <@rnewman> err, yeah, that's all completely wrong, isn't it? 20:50:47 <@rnewman> two possibilities 20:50:54 <@rnewman> one: override delete, so you would 20:51:10 <@rnewman> foo = new HttpDelete(this.uri); 20:51:16 <@rnewman> foo.addHeader(...); 20:51:19 <@rnewman> this.go(foo); 20:52:26 <@rnewman> two: check for delete in SyncStorageResourceDelegate.addHeaders, and add the header there 20:52:40 <@rnewman> I prefer the second option, marina 20:52:49 <@rnewman> good catch :) 20:53:06 < marina> ah, excellent, glad you agree that was weird 20:53:11 < marina> thanks! 20:53:54 <@rnewman> "check for delete": if (request instanceof HttpDelete) { ... 20:54:17 <@rnewman> or 20:54:18 <@rnewman> better 20:54:28 <@rnewman> if (request.getMethod.equalsIgnoreCase("DELETE")) 20:54:43 <@rnewman> there would be an awful edge case bug hiding there This is what happens when you don't write tests :D
Assignee | ||
Updated•12 years ago
|
OS: All → Android
Comment 2•12 years ago
|
||
Fixed in develop: https://github.com/mozilla-services/android-sync/commit/3133b2aa489c448bac68be7d06ec5e2f590e24db
Comment 3•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/07510613658c
Target Milestone: --- → mozilla13
Updated•12 years ago
|
Whiteboard: [qa-]
Updated•11 years ago
|
Product: Mozilla Services → Android Background Services
Updated•7 years ago
|
Product: Android Background Services → Firefox for Android
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•