julian-klode / dns66

DNS-based Host Blocker (and lightweight ad blocker) for Android

Home Page:https://jak-linux.org/projects/dns66/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getContext().getPackageManager() on a null object reference

soenkegissel opened this issue · comments

In AppListAdapter extends RecyclerView.Adapter in function onBindViewHolder. packageManager is already in signature, initialize it!
I have exceptions caused by
getContext().getPackageManager() NPE in line 186

image

The solution:
image

Can you submit a pull request for this?

Nevermind