From 51a429ebd9bab4881829d6e83e31ef068ec2caae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ryszard=20Wi=C5=9Bniewski?= Date: Wed, 2 Jun 2010 11:21:37 +0200 Subject: [PATCH] AndrolibResources.getFrameworkApk(): fixed small bug, occuring when frameTag is null. --- src/brut/androlib/res/AndrolibResources.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/brut/androlib/res/AndrolibResources.java b/src/brut/androlib/res/AndrolibResources.java index 52a55476..d4f01736 100644 --- a/src/brut/androlib/res/AndrolibResources.java +++ b/src/brut/androlib/res/AndrolibResources.java @@ -304,10 +304,13 @@ final public class AndrolibResources { private File getFrameworkApk(int id, String frameTag) throws AndrolibException { File dir = getFrameworkDir(); + File apk; - File apk = new File(dir, String.valueOf(id) + '-' + frameTag + ".apk"); - if (apk.exists()) { - return apk; + if (frameTag != null) { + apk = new File(dir, String.valueOf(id) + '-' + frameTag + ".apk"); + if (apk.exists()) { + return apk; + } } apk = new File(dir, String.valueOf(id) + ".apk");