From 43c24e17393fa93d79fa73bb726d4c65abc37faa Mon Sep 17 00:00:00 2001 From: pelya Date: Fri, 31 Dec 2010 11:35:46 +0000 Subject: [PATCH] Fixed crash in Java code --- project/java/DataDownloader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/java/DataDownloader.java b/project/java/DataDownloader.java index cc356d503..20b545a69 100644 --- a/project/java/DataDownloader.java +++ b/project/java/DataDownloader.java @@ -376,7 +376,8 @@ class DataDownloader extends Thread ZipEntry entry = null; try { entry = zip.getNextEntry(); - System.out.println("Reading from zip file '" + url + "' entry '" + entry.getName() + "'"); + if( entry != null ) + System.out.println("Reading from zip file '" + url + "' entry '" + entry.getName() + "'"); } catch( java.io.IOException e ) { Status.setText( res.getString(R.string.error_dl_from, url) ); System.out.println("Error reading from zip file '" + url + "': " + e.toString());