diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-10-01 13:53:42 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-10-04 17:49:58 +0200 |
commit | 52228bbd790bb5fb3958fa2ef84a4171f0ad199c (patch) | |
tree | 44980c0a28f0f27f68a73f1d7489981e7de9a671 | |
parent | 0d3e2ee5cdb685e68ec4a16f2218967f75a2dab5 (diff) |
android: image in TileLayer can be null
Change-Id: I4a910eb60f6fe81f97933d1b9e57bac6af4547c9
-rw-r--r-- | android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/TileLayer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/TileLayer.java b/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/TileLayer.java index 1ee1f1a5b6dd..28ac4875eafc 100644 --- a/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/TileLayer.java +++ b/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/TileLayer.java @@ -28,7 +28,7 @@ public abstract class TileLayer extends Layer { private PaintMode mPaintMode; public TileLayer(CairoImage image, PaintMode paintMode) { - super(image.getSize()); + super(image == null ? null : image.getSize()); mPaintMode = paintMode; mImage = image; |