Skip to content

Commit

Permalink
Nullpointer exception when ipv6 is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ukanth committed Oct 19, 2019
1 parent f1ffe63 commit 1023637
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aFWall/src/main/java/dev/ukanth/ufirewall/Api.java
Original file line number Diff line number Diff line change
Expand Up @@ -897,11 +897,13 @@ public static void applySavedIptablesRules(Context ctx, boolean showErrors, Root
}

t1.start();
t2.start();
if (G.enableIPv6()) {
t2.start();
}

try {
t1.join();
if (t2 != null) {
if (G.enableIPv6() && t2 != null) {
t2.join();
}
} catch (InterruptedException e) {
Expand Down

0 comments on commit 1023637

Please sign in to comment.