Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 8956033: android: fixed crash on calling callback (Closed)

Created:
Nov. 27, 2012, 1:54 p.m. by Andrey Novikov
Modified:
Nov. 28, 2012, 8:09 a.m.
Reviewers:
Felix Dahlke
Visibility:
Public.

Description

android: fixed crash on calling callback

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M src/org/adblockplus/android/AdblockPlus.java View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 3
Andrey Novikov
Nov. 27, 2012, 1:54 p.m. (2012-11-27 13:54:43 UTC) #1
Felix Dahlke
On 2012/11/27 13:54:43, Andrey Novikov wrote: LGTM
Nov. 28, 2012, 8:06 a.m. (2012-11-28 08:06:22 UTC) #2
Felix Dahlke
Nov. 28, 2012, 8:09 a.m. (2012-11-28 08:09:44 UTC) #3
On 2012/11/28 08:06:22, Felix H. Dahlke wrote:
> On 2012/11/27 13:54:43, Andrey Novikov wrote:
> 
> LGTM

Actually, after a second look, I think it makes sense to move the check up to
the first line:

if (result != null && js != null)
...

Also, is that the only place were js can suddenly be null? If not, it maybe
worth handling in a central place.

Powered by Google App Engine
This is Rietveld