Kaydet (Commit) a4f72f9a authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

android: call destroy only if the document exists

Change-Id: Ia9459151ac46a8be0f9a3944f2bcd427435c284e
üst 316afc9b
...@@ -157,7 +157,9 @@ public class LOKitTileProvider implements TileProvider { ...@@ -157,7 +157,9 @@ public class LOKitTileProvider implements TileProvider {
@Override @Override
public void close() { public void close() {
Log.i(LOGTAG, "Document destroyed: " + mInputFile); Log.i(LOGTAG, "Document destroyed: " + mInputFile);
mDocument.destroy(); if (mDocument != null) {
mDocument.destroy();
}
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment