Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE] FATAL Unable to start activity ComponentInfo #1354

Open
resolutecake opened this issue Sep 11, 2023 · 0 comments
Open

[ISSUE] FATAL Unable to start activity ComponentInfo #1354

resolutecake opened this issue Sep 11, 2023 · 0 comments
Labels

Comments

@resolutecake
Copy link

Describe the bug
The app crashes due to null, see patch at end

Firewall Logs
N?A

Smartphone (please complete the following information):
all

Additional context

+++ b/app/src/main/java/dev/ukanth/ufirewall/activity/AppDetailActivity.java
@@ -85,9 +85,11 @@ public class AppDetailActivity extends AppCompatActivity {
 
         HashMap<Integer,String> listMaps = Api.getPackagesForUser(Api.getListOfUids());
         String packageNameList = "";
-        PackageInfo packageInfo =  Api.getPackageDetails(ctx, listMaps, appid);
-        if(packageInfo != null) {
-            packageNameList = packageInfo.applicationInfo.name;
+        if (listMaps != null) {
+            PackageInfo packageInfo = Api.getPackageDetails(ctx, listMaps, appid);
+            if (packageInfo != null) {
+                packageNameList = packageInfo.applicationInfo.name;
+            }
         }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant