diff --git a/app/src/main/java/org/fdroid/fdroid/views/swap/SwapAppsView.java b/app/src/main/java/org/fdroid/fdroid/views/swap/SwapAppsView.java
index d7b42505d..dd360fcb7 100644
--- a/app/src/main/java/org/fdroid/fdroid/views/swap/SwapAppsView.java
+++ b/app/src/main/java/org/fdroid/fdroid/views/swap/SwapAppsView.java
@@ -96,10 +96,12 @@ public class SwapAppsView extends ListView implements
super.onFinishInflate();
repo = getActivity().getState().getPeerRepo();
+ /*
if (repo == null) {
- // TODO: Uh oh, something stuffed up for this to happen.
- // TODO: What is the best course of action from here?
+ TODO: Uh oh, something stuffed up for this to happen.
+ TODO: What is the best course of action from here?
}
+ */
adapter = new AppListAdapter(getContext(), getContext().getContentResolver().query(
AppProvider.getRepoUri(repo), AppProvider.DataColumns.ALL, null, null, null));
diff --git a/config/pmd/rules.xml b/config/pmd/rules.xml
index 1ca6078d2..3e4600f4e 100644
--- a/config/pmd/rules.xml
+++ b/config/pmd/rules.xml
@@ -17,6 +17,10 @@
+
+
+
+