Skip to content

Commit 3142a9f

Browse files
committed
Merge pull request koush#216 from robUx4/npe_android2x
Fix a rare NPE crash in Android 2.x
2 parents c866d2b + 8f5a76f commit 3142a9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

AndroidAsync/src/com/koushikdutta/async/AsyncServer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,9 @@ private static void runLoop(final AsyncServer server, final SelectorWrapper sele
727727
}
728728
}
729729
}
730+
catch (NullPointerException e) {
731+
throw new AsyncSelectorException(e);
732+
}
730733
catch (IOException e) {
731734
throw new AsyncSelectorException(e);
732735
}

0 commit comments

Comments
 (0)