Potential crash when using new version without updating repo index

This commit is contained in:
Ciaran Gultnieks 2011-01-26 18:41:53 +00:00
parent 2512ce7145
commit 6fddf13fb3
2 changed files with 2 additions and 8 deletions

View File

@ -412,7 +412,8 @@ public class AppDetails extends ListActivity {
// Install the version of this app denoted by 'curapk'.
private void install() {
if (mInstalledSigID != null && !curapk.sig.equals(mInstalledSigID)) {
if (mInstalledSigID != null && curapk.sig != null
&& !curapk.sig.equals(mInstalledSigID)) {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(R.string.SignatureMismatch).setPositiveButton(
"Ok", new DialogInterface.OnClickListener() {

View File

@ -20,18 +20,11 @@ package org.fdroid.fdroid;
import java.util.Vector;
import android.app.AlertDialog;
import android.app.ListActivity;
import android.app.SearchManager;
import android.app.AlertDialog.Builder;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;