Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(178)

Issue 1867041: Gracefully handling case when document parsing returns null (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 6 months ago by gagan.goku
Modified:
15 years, 5 months ago
Reviewers:
johnfargo, dev-remailer
CC:
cool-shindig-committers_googlegroups.com, vikaas.arora
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/java/gadgets/src
Visibility:
Public.

Description

Currently DomWalker.rewrite() throws NullPointerException when content.getDocument() returns null. This change handles this case and throws a GadgetException so that we can return an INTERNAL_SERVER_ERROR to the user.

Patch Set 1 #

Total comments: 6

Patch Set 2 : addressing comments #

Patch Set 3 : reverting_MutableContent #

Patch Set 4 : reverting_MutableContent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -12 lines) Patch
M main/java/org/apache/shindig/gadgets/rewrite/DomWalker.java View 1 2 2 chunks +9 lines, -1 line 0 comments Download
M test/java/org/apache/shindig/gadgets/rewrite/DomWalkerTest.java View 1 2 2 chunks +29 lines, -11 lines 0 comments Download

Messages

Total messages: 8
gagan.goku
15 years, 6 months ago (2010-07-16 18:24:04 UTC) #1
gagan.goku
On 2010/07/16 18:24:04, gagan.goku wrote: > Please review.
15 years, 6 months ago (2010-07-19 13:08:33 UTC) #2
vikaas.arora
http://codereview.appspot.com/1867041/diff/1/2 File main/java/org/apache/shindig/gadgets/rewrite/DomWalker.java (right): http://codereview.appspot.com/1867041/diff/1/2#newcode153 main/java/org/apache/shindig/gadgets/rewrite/DomWalker.java:153: Document doc = content.getDocument(); Is there a way we ...
15 years, 6 months ago (2010-07-19 13:33:33 UTC) #3
gagan.goku
addressing comments
15 years, 6 months ago (2010-07-19 14:23:40 UTC) #4
gagan.goku
http://codereview.appspot.com/1867041/diff/1/2 File main/java/org/apache/shindig/gadgets/rewrite/DomWalker.java (right): http://codereview.appspot.com/1867041/diff/1/2#newcode153 main/java/org/apache/shindig/gadgets/rewrite/DomWalker.java:153: Document doc = content.getDocument(); On 2010/07/19 13:33:34, vikaas.arora wrote: ...
15 years, 6 months ago (2010-07-19 14:23:48 UTC) #5
johnfargo
LGTM, committing shortly.
15 years, 5 months ago (2010-07-26 22:14:55 UTC) #6
johnfargo
FYI Committed as http://svn.apache.org/viewvc?view=revision&revision=979472 On 2010/07/26 22:14:55, johnfargo wrote: > LGTM, committing shortly.
15 years, 5 months ago (2010-07-26 22:22:56 UTC) #7
gagan.goku
15 years, 5 months ago (2010-07-27 05:36:59 UTC) #8
Thanks John

On Tue, Jul 27, 2010 at 3:52 AM, <johnfargo@gmail.com> wrote:

> FYI
>
> Committed as http://svn.apache.org/viewvc?view=revision&revision=979472
>
>
> On 2010/07/26 22:14:55, johnfargo wrote:
>
>> LGTM, committing shortly.
>>
>
>
>
> http://codereview.appspot.com/1867041/show
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b