We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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; + } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: